summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2016-07-25 14:36:55 +0000
committeremaste <emaste@FreeBSD.org>2016-07-25 14:36:55 +0000
commita2304bc0db6fb1f2212a5c75eb1f696ff541a00b (patch)
tree93acf0caecdb9dfc33f2d19049fd9f382ba57fb8
parent8027677b691a675281628b8570a8d87dc82c7818 (diff)
downloadFreeBSD-src-a2304bc0db6fb1f2212a5c75eb1f696ff541a00b.zip
FreeBSD-src-a2304bc0db6fb1f2212a5c75eb1f696ff541a00b.tar.gz
MFC r297871: boot1.efifat: provide a fallback startup.nsh
In case the firmware falls through to executing startup.sh, populate it with the name of our boot loader. In normal operation this should not be necessary but may allow the system to boot if it would otherwise just remain at a shell prompt. Sponsored by: The FreeBSD Foundation
-rwxr-xr-xsys/boot/efi/boot1/generate-fat.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/boot/efi/boot1/generate-fat.sh b/sys/boot/efi/boot1/generate-fat.sh
index 2688da3..1392f81 100755
--- a/sys/boot/efi/boot1/generate-fat.sh
+++ b/sys/boot/efi/boot1/generate-fat.sh
@@ -41,6 +41,8 @@ mkdir -p stub/efi/boot
# Make a dummy file for boot1
echo 'Boot1 START' | dd of=stub/efi/boot/$FILENAME cbs=$BOOT1_SIZE count=1 conv=block
+# Provide a fallback startup.nsh
+echo $FILENAME > stub/efi/boot/startup.nsh
umount stub
mdconfig -d -u $DEVICE
OpenPOWER on IntegriCloud