Currently GRUB_ROOT assigned a value of literal "${ROOT}" by default if ROOT variable is not set. This causes kernel commandline to look like this: "linux /vmlinuz LABEL=boot {ROOT}"
Used weak assignments of ROOT and GRUB_ROOT variables to make sure GRUB_ROOT is "" by default. Allowed empty GRUB_ROOT to be able to use only APPEND variable for both EFI bootloaders (systemd-boot and grub-efi). Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> --- meta/classes/grub-efi.bbclass | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meta/classes/grub-efi.bbclass b/meta/classes/grub-efi.bbclass index bacbeb4..b55ac96 100644 --- a/meta/classes/grub-efi.bbclass +++ b/meta/classes/grub-efi.bbclass @@ -27,7 +27,8 @@ GRUB_TIMEOUT ?= "10" GRUB_OPTS ?= "serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1" EFIDIR = "/EFI/BOOT" -GRUB_ROOT ?= "${ROOT}" +ROOT ??= "" +GRUB_ROOT ??= "${ROOT}" APPEND ?= "" # Need UUID utility code. @@ -121,8 +122,6 @@ python build_efi_cfg() { cfgfile.write('timeout=50\n') root = d.getVar('GRUB_ROOT') - if not root: - bb.fatal('GRUB_ROOT not defined') if gfxserial == "1": btypes = [ [ " graphics console", "" ], @@ -146,7 +145,8 @@ python build_efi_cfg() { lb = "install-efi" cfgfile.write('linux /vmlinuz LABEL=%s' % (lb)) - cfgfile.write(' %s' % replace_rootfs_uuid(d, root)) + if root: + cfgfile.write(' %s' % replace_rootfs_uuid(d, root)) append = localdata.getVar('APPEND') initrd = localdata.getVar('INITRD') -- 2.1.4 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core