]> code.ossystems Code Review - openembedded-core.git/commitdiff
mkefidisk.sh: add startup script for automated boot
authorTrevor Woerner <twoerner@gmail.com>
Sat, 28 Nov 2015 14:43:02 +0000 (09:43 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Jan 2016 13:40:06 +0000 (13:40 +0000)
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 <twoerner@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/contrib/mkefidisk.sh

index cd4de0533695293d3525fa34c918d1c523de24d9..1c11d1a6b6857f2e46aa8a2e4abc31330429eddf 100755 (executable)
@@ -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