summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/systemd-boot-cfg.bbclass6
-rw-r--r--meta/classes/systemd-boot.bbclass2
2 files changed, 6 insertions, 2 deletions
diff --git a/meta/classes/systemd-boot-cfg.bbclass b/meta/classes/systemd-boot-cfg.bbclass
index 46eeae126a..360c86cbd3 100644
--- a/meta/classes/systemd-boot-cfg.bbclass
+++ b/meta/classes/systemd-boot-cfg.bbclass
@@ -1,3 +1,5 @@
1KERNEL_IMAGETYPE ??= "bzImage"
2
1SYSTEMD_BOOT_CFG ?= "${S}/loader.conf" 3SYSTEMD_BOOT_CFG ?= "${S}/loader.conf"
2SYSTEMD_BOOT_ENTRIES ?= "" 4SYSTEMD_BOOT_ENTRIES ?= ""
3SYSTEMD_BOOT_TIMEOUT ?= "10" 5SYSTEMD_BOOT_TIMEOUT ?= "10"
@@ -52,7 +54,9 @@ python build_efi_cfg() {
52 localdata.setVar('OVERRIDES', label + ':' + overrides) 54 localdata.setVar('OVERRIDES', label + ':' + overrides)
53 55
54 entrycfg.write('title %s\n' % label) 56 entrycfg.write('title %s\n' % label)
55 entrycfg.write('linux /vmlinuz\n') 57
58 kernel = localdata.getVar("KERNEL_IMAGETYPE")
59 entrycfg.write('linux /%s\n' % kernel)
56 60
57 append = localdata.getVar('APPEND') 61 append = localdata.getVar('APPEND')
58 initrd = localdata.getVar('INITRD') 62 initrd = localdata.getVar('INITRD')
diff --git a/meta/classes/systemd-boot.bbclass b/meta/classes/systemd-boot.bbclass
index 14538fe2d7..3cd6811a6c 100644
--- a/meta/classes/systemd-boot.bbclass
+++ b/meta/classes/systemd-boot.bbclass
@@ -45,7 +45,7 @@ efi_iso_populate() {
45 mkdir -p ${EFIIMGDIR}/${EFIDIR} 45 mkdir -p ${EFIIMGDIR}/${EFIDIR}
46 cp $iso_dir/${EFIDIR}/* ${EFIIMGDIR}${EFIDIR} 46 cp $iso_dir/${EFIDIR}/* ${EFIIMGDIR}${EFIDIR}
47 cp -r $iso_dir/loader ${EFIIMGDIR} 47 cp -r $iso_dir/loader ${EFIIMGDIR}
48 cp $iso_dir/vmlinuz ${EFIIMGDIR} 48 cp $iso_dir/${KERNEL_IMAGETYPE} ${EFIIMGDIR}
49 EFIPATH=$(echo "${EFIDIR}" | sed 's/\//\\/g') 49 EFIPATH=$(echo "${EFIDIR}" | sed 's/\//\\/g')
50 echo "fs0:${EFIPATH}\\${DEST_EFI_IMAGE}" > ${EFIIMGDIR}/startup.nsh 50 echo "fs0:${EFIPATH}\\${DEST_EFI_IMAGE}" > ${EFIIMGDIR}/startup.nsh
51 if [ -f "$iso_dir/initrd" ] ; then 51 if [ -f "$iso_dir/initrd" ] ; then