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>
This commit is contained in:
parent
87ec35603d
commit
6b0abc9b7c
|
@ -37,6 +37,8 @@ efi_populate() {
|
||||||
install -d ${DEST}/loader
|
install -d ${DEST}/loader
|
||||||
install -d ${DEST}/loader/entries
|
install -d ${DEST}/loader/entries
|
||||||
install -m 0644 ${DEPLOY_DIR_IMAGE}/${EFI_IMAGE} ${DEST}${EFIDIR}/${DEST_EFI_IMAGE}
|
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
|
install -m 0644 ${SYSTEMD_BOOT_CFG} ${DEST}/loader/loader.conf
|
||||||
for i in ${SYSTEMD_BOOT_ENTRIES}; do
|
for i in ${SYSTEMD_BOOT_ENTRIES}; do
|
||||||
install -m 0644 ${i} ${DEST}/loader/entries
|
install -m 0644 ${i} ${DEST}/loader/entries
|
||||||
|
|
Loading…
Reference in New Issue