summaryrefslogtreecommitdiffstats
path: root/scripts/contrib
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2017-06-29 13:46:18 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-30 08:44:09 +0100
commit008d6cb5bb4969f53a228893c502be8c9420ecb0 (patch)
tree510e940deb9c0f15372f58425803c93b96a355da /scripts/contrib
parentde7914954571ea8e717f56b6d6df13157b0973bc (diff)
downloadopenembedded-core-008d6cb5bb4969f53a228893c502be8c9420ecb0.tar.gz
openembedded-core-008d6cb5bb4969f53a228893c502be8c9420ecb0.tar.bz2
openembedded-core-008d6cb5bb4969f53a228893c502be8c9420ecb0.zip
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] Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/contrib')
-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
fi
# Add startup.nsh script for automated boot
-echo "fs0:\EFI\BOOT\bootx64.efi" > $BOOTFS_MNT/startup.nsh
+printf "fs0:\%s\BOOT\%s\n" "EFI" "bootx64.efi" > $BOOTFS_MNT/startup.nsh
# Call cleanup to unmount devices and images and remove the TMPDIR