]> code.ossystems Code Review - openembedded-core.git/commitdiff
systemd-boot: write startup.nsh
authorChristopher Larson <chris_larson@mentor.com>
Tue, 28 Mar 2017 16:14:56 +0000 (21:14 +0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 28 Mar 2017 16:21:02 +0000 (17:21 +0100)
This aligns with the behavior of grub-efi and gummiboot, and is needed to fix
auto-boot of intel-corei7-64 for non-GPLv3 builds.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/systemd-boot.bbclass

index 6d002c0e4ed1bacfa4a7ce172ea1ce2765409ffa..4e69a2c6b55f05a8edcc3f6a67bab97427c87bc0 100644 (file)
@@ -37,6 +37,8 @@ efi_populate() {
         install -d ${DEST}/loader
         install -d ${DEST}/loader/entries
         install -m 0644 ${DEPLOY_DIR_IMAGE}/${EFI_IMAGE} ${DEST}${EFIDIR}/${DEST_EFI_IMAGE}
+        EFIPATH=$(echo "${EFIDIR}" | sed 's/\//\\/g')
+        printf 'fs0:%s\%s\n' "$EFIPATH" "$DEST_EFI_IMAGE" >${DEST}/startup.nsh
         install -m 0644 ${SYSTEMD_BOOT_CFG} ${DEST}/loader/loader.conf
         for i in ${SYSTEMD_BOOT_ENTRIES}; do
             install -m 0644 ${i} ${DEST}/loader/entries