From: Trevor Woerner Date: Sat, 28 Nov 2015 14:43:02 +0000 (-0500) Subject: mkefidisk.sh: add startup script for automated boot X-Git-Tag: 2016-4~1720 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=51dc79d55d0985e64838a08d39a22e8cd3fcd59a;p=openembedded-core.git 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 --- 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