Bug 6889

Summary: vmdk and live can't work together
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Robert Yang <liezhi.yang>
Component: deploymentAssignee: Robert Yang <liezhi.yang>
Status: VERIFIED FIXED QA Contact: Alexandru Georgescu <alexandru.c.georgescu>
Severity: normal    
Priority: Medium CC: alexandru.c.georgescu, padam.singh, sgw
Version: 1.8   
Target Milestone: 1.8 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)

Description Robert Yang 2014-10-26 08:24:11 UTC
If we set these in local.conf:

IMAGE_FSTYPES += "vmdk"
IMAGE_FSTYPES += "live"
SYSLINUX_LABELS = "boot"
SYSLINUX_TIMEOUT = "50"
AUTO_SYSLINUXMENU = "1" 

Then the vmdk doesn't work since the settings in image-live.bbclass and image-vmdk.bbclass are conflicted:

image-live.bbclass:
INITRD_IMAGE ?= "core-image-minimal-initramfs"
INITRD ?= "${DEPLOY_DIR_IMAGE}/${INITRD_IMAGE}-${MACHINE}.cpio.gz"
SYSLINUX_ROOT = "root=/dev/ram0"
SYSLINUX_TIMEOUT ?= "10"
SYSLINUX_LABELS ?= "boot install"

image-vmdk.bbclass:
SYSLINUX_ROOT ?= "root=/dev/sda2"
SYSLINUX_PROMPT ?= "0"
SYSLINUX_TIMEOUT ?= "10"
SYSLINUX_LABELS = "boot"

Note the conflicts are INITRD and SYSLINUX_ROOT, the INITRD is for core-image-minimal-initramfs, not for the image-image such as core-image-sato, and the SYSLINUX_ROOT are different.
Comment 1 Saul Wold 2015-03-20 15:26:07 UTC
*** Bug 7454 has been marked as a duplicate of this bug. ***
Comment 3 Alexandru Georgescu 2015-03-26 10:33:12 UTC
Verified with fido:8b3d3e7c957ad06c390886487f69aeb8e145da6a

[cosscat@Fedora-CCC build]$ bitbake core-image-minimal
WARNING: Host distribution "Fedora-20" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    Error, IMAGE_FSTYPES vmdk and live can't be built together


Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
[cosscat@Fedora-CCC build]$