summaryrefslogtreecommitdiffstats
path: root/scripts/contrib/mkefidisk.sh
diff options
context:
space:
mode:
authorTrevor Woerner <twoerner@gmail.com>2015-11-28 09:43:02 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-07 13:40:17 +0000
commit62d7c979124e20bc10a89add58a45174c0f3716f (patch)
tree7cbe592732db102376cf862236ec540e4ad026af /scripts/contrib/mkefidisk.sh
parent5aa3b930092d1ae525cefacbb19966b883ec730b (diff)
downloadpoky-62d7c979124e20bc10a89add58a45174c0f3716f.tar.gz
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. (From OE-Core rev: 51dc79d55d0985e64838a08d39a22e8cd3fcd59a) Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/contrib/mkefidisk.sh')
-rwxr-xr-xscripts/contrib/mkefidisk.sh3
1 files changed, 3 insertions, 0 deletions
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
438 echo "$TARGET_DEVICE" >> $ROOTFS_MNT/etc/udev/mount.blacklist 438 echo "$TARGET_DEVICE" >> $ROOTFS_MNT/etc/udev/mount.blacklist
439fi 439fi
440 440
441# Add startup.nsh script for automated boot
442echo "fs0:\EFI\BOOT\bootx64.efi" > $BOOTFS_MNT/startup.nsh
443
441 444
442# Call cleanup to unmount devices and images and remove the TMPDIR 445# Call cleanup to unmount devices and images and remove the TMPDIR
443cleanup 446cleanup