summaryrefslogtreecommitdiffstats
path: root/meta/classes/systemd-boot.bbclass
diff options
context:
space:
mode:
authorChristopher Larson <chris_larson@mentor.com>2017-03-28 16:14:56 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-29 15:37:28 (GMT)
commit6b0abc9b7c4ba6a26fce1cc4e90f90a6b01fddea (patch)
tree2b95c60d002164873b6006d6749c6216038c2af1 /meta/classes/systemd-boot.bbclass
parent87ec35603d97019683a015a157f6f1f38db8ac3a (diff)
downloadpoky-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/systemd-boot.bbclass')
-rw-r--r--meta/classes/systemd-boot.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/systemd-boot.bbclass b/meta/classes/systemd-boot.bbclass
index 6d002c0..4e69a2c 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