diff options
author | Saul Wold <sgw@linux.intel.com> | 2017-07-11 08:14:16 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-12 00:26:27 +0100 |
commit | 1382d6cccea3a23f04c08a7803022c5d96ee4ab7 (patch) | |
tree | 7aa89a833d92a987ead3f2b3f51d645f05c03cde /scripts | |
parent | 7c27bf2dd85ee77d643d975add4256e957652a5c (diff) | |
download | poky-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-x | scripts/contrib/mkefidisk.sh | 2 |
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 | |||
444 | fi | 444 | fi |
445 | 445 | ||
446 | # Add startup.nsh script for automated boot | 446 | # Add startup.nsh script for automated boot |
447 | echo "fs0:\EFI\BOOT\bootx64.efi" > $BOOTFS_MNT/startup.nsh | 447 | printf "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 |