summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2017-07-11 08:14:16 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-12 00:26:27 +0100
commit1382d6cccea3a23f04c08a7803022c5d96ee4ab7 (patch)
tree7aa89a833d92a987ead3f2b3f51d645f05c03cde /scripts
parent7c27bf2dd85ee77d643d975add4256e957652a5c (diff)
downloadpoky-1382d6cccea3a23f04c08a7803022c5d96ee4ab7.tar.gz
mkefidsk: fix bash/dash shell quoting problem
mkefidsk currently writes a startup.nsh with embedded control characters. This happens because \b etc are control sequences to the shell echo command when using dash. The resulting startup.nsh causes the bootup to fail, and the user is dropped into the EFI shell to manually run startup.nsh. Patch originally provided by Troy D. Hanson <troy.hanson@jhuapl.edu> [YOCTO #9665] (From OE-Core rev: 359722a86580128aeccd05531eff0da4e6971721) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 008d6cb5bb4969f53a228893c502be8c9420ecb0) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/contrib/mkefidisk.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/contrib/mkefidisk.sh b/scripts/contrib/mkefidisk.sh
index 800733f0af..ac4ec9c7fb 100755
--- a/scripts/contrib/mkefidisk.sh
+++ b/scripts/contrib/mkefidisk.sh
@@ -444,7 +444,7 @@ if [ -d $ROOTFS_MNT/etc/udev/ ] ; then
444fi 444fi
445 445
446# Add startup.nsh script for automated boot 446# Add startup.nsh script for automated boot
447echo "fs0:\EFI\BOOT\bootx64.efi" > $BOOTFS_MNT/startup.nsh 447printf "fs0:\%s\BOOT\%s\n" "EFI" "bootx64.efi" > $BOOTFS_MNT/startup.nsh
448 448
449 449
450# Call cleanup to unmount devices and images and remove the TMPDIR 450# Call cleanup to unmount devices and images and remove the TMPDIR