diff options
author | emaste <emaste@FreeBSD.org> | 2016-04-12 20:52:28 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2016-04-12 20:52:28 +0000 |
commit | a1ddc33b15c4320dd2fa95f50e07763a1a3d396d (patch) | |
tree | 18a0655117a6db9296796f4cdc6b8d210bb521dc /sys/boot/efi | |
parent | c78bfcfb8f824930b3780c411e7a2031bd719c33 (diff) | |
download | FreeBSD-src-a1ddc33b15c4320dd2fa95f50e07763a1a3d396d.zip FreeBSD-src-a1ddc33b15c4320dd2fa95f50e07763a1a3d396d.tar.gz |
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.
Reviewed by: andrew, imp, smh
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D5878
Diffstat (limited to 'sys/boot/efi')
-rwxr-xr-x | sys/boot/efi/boot1/generate-fat.sh | 2 |
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 8b3fae8..d9dfb27 100755 --- a/sys/boot/efi/boot1/generate-fat.sh +++ b/sys/boot/efi/boot1/generate-fat.sh @@ -44,6 +44,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 |