diff options
author | Christopher Larson <chris_larson@mentor.com> | 2017-03-28 21:14:56 +0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-29 16:37:28 +0100 |
commit | 6b0abc9b7c4ba6a26fce1cc4e90f90a6b01fddea (patch) | |
tree | 2b95c60d002164873b6006d6749c6216038c2af1 /meta/classes | |
parent | 87ec35603d97019683a015a157f6f1f38db8ac3a (diff) | |
download | poky-6b0abc9b7c4ba6a26fce1cc4e90f90a6b01fddea.tar.gz |
systemd-boot: write startup.nsh
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.
(From OE-Core rev: c187326afcf1e9d781c1bd0923e1362a6f50f613)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/systemd-boot.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/systemd-boot.bbclass b/meta/classes/systemd-boot.bbclass index 6d002c0e4e..4e69a2c6b5 100644 --- a/meta/classes/systemd-boot.bbclass +++ b/meta/classes/systemd-boot.bbclass | |||
@@ -37,6 +37,8 @@ efi_populate() { | |||
37 | install -d ${DEST}/loader | 37 | install -d ${DEST}/loader |
38 | install -d ${DEST}/loader/entries | 38 | install -d ${DEST}/loader/entries |
39 | install -m 0644 ${DEPLOY_DIR_IMAGE}/${EFI_IMAGE} ${DEST}${EFIDIR}/${DEST_EFI_IMAGE} | 39 | install -m 0644 ${DEPLOY_DIR_IMAGE}/${EFI_IMAGE} ${DEST}${EFIDIR}/${DEST_EFI_IMAGE} |
40 | EFIPATH=$(echo "${EFIDIR}" | sed 's/\//\\/g') | ||
41 | printf 'fs0:%s\%s\n' "$EFIPATH" "$DEST_EFI_IMAGE" >${DEST}/startup.nsh | ||
40 | install -m 0644 ${SYSTEMD_BOOT_CFG} ${DEST}/loader/loader.conf | 42 | install -m 0644 ${SYSTEMD_BOOT_CFG} ${DEST}/loader/loader.conf |
41 | for i in ${SYSTEMD_BOOT_ENTRIES}; do | 43 | for i in ${SYSTEMD_BOOT_ENTRIES}; do |
42 | install -m 0644 ${i} ${DEST}/loader/entries | 44 | install -m 0644 ${i} ${DEST}/loader/entries |