From 51dc79d55d0985e64838a08d39a22e8cd3fcd59a Mon Sep 17 00:00:00 2001 From: Trevor Woerner Date: Sat, 28 Nov 2015 09:43:02 -0500 Subject: mkefidisk.sh: add startup script for automated boot Regardless of which image is built using which layers, try to ensure the image on the SD device being prepared is the one that is booted automatically when the board is powered. Signed-off-by: Trevor Woerner Signed-off-by: Ross Burton --- scripts/contrib/mkefidisk.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/contrib/mkefidisk.sh') diff --git a/scripts/contrib/mkefidisk.sh b/scripts/contrib/mkefidisk.sh index cd4de05336..1c11d1a6b6 100755 --- a/scripts/contrib/mkefidisk.sh +++ b/scripts/contrib/mkefidisk.sh @@ -438,6 +438,9 @@ if [ -d $ROOTFS_MNT/etc/udev/ ] ; then echo "$TARGET_DEVICE" >> $ROOTFS_MNT/etc/udev/mount.blacklist fi +# Add startup.nsh script for automated boot +echo "fs0:\EFI\BOOT\bootx64.efi" > $BOOTFS_MNT/startup.nsh + # Call cleanup to unmount devices and images and remove the TMPDIR cleanup -- cgit v1.2.3