summaryrefslogtreecommitdiffstats
path: root/meta/classes/grub-efi-cfg.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/grub-efi-cfg.bbclass')
-rw-r--r--meta/classes/grub-efi-cfg.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/grub-efi-cfg.bbclass b/meta/classes/grub-efi-cfg.bbclass
index 730323c72e..85173c91fc 100644
--- a/meta/classes/grub-efi-cfg.bbclass
+++ b/meta/classes/grub-efi-cfg.bbclass
@@ -22,6 +22,7 @@ GRUB_CFG_LIVE = "${S}/grub_live.cfg"
22GRUB_TIMEOUT ?= "10" 22GRUB_TIMEOUT ?= "10"
23#FIXME: build this from the machine config 23#FIXME: build this from the machine config
24GRUB_OPTS ?= "serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1" 24GRUB_OPTS ?= "serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1"
25KERNEL_IMAGETYPE ??= "bzImage"
25 26
26EFIDIR = "/EFI/BOOT" 27EFIDIR = "/EFI/BOOT"
27GRUB_ROOT ?= "${ROOT}" 28GRUB_ROOT ?= "${ROOT}"
@@ -97,7 +98,8 @@ python build_efi_cfg() {
97 lb = label 98 lb = label
98 if label == "install": 99 if label == "install":
99 lb = "install-efi" 100 lb = "install-efi"
100 cfgfile.write('linux /vmlinuz LABEL=%s' % (lb)) 101 kernel = localdata.getVar('KERNEL_IMAGETYPE')
102 cfgfile.write('linux /%s LABEL=%s' % (kernel, lb))
101 103
102 cfgfile.write(' %s' % replace_rootfs_uuid(d, root)) 104 cfgfile.write(' %s' % replace_rootfs_uuid(d, root))
103 105