summaryrefslogtreecommitdiff
path: root/meta/classes/grub-efi.bbclass
diff options
context:
space:
mode:
authorPranav Tipnis <pranav.tipnis@intel.com>2016-08-19 18:28:41 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-23 17:44:05 +0100
commit7540b9e68d56e7779b478d2bc09fbbedcf28976b (patch)
treec81ad49ef612b0d76f3927b78c87aae8e7cfb3e1 /meta/classes/grub-efi.bbclass
parentfb72263eaa94e64ddeee457b5b1bc999f0e647da (diff)
downloadopenembedded-core-7540b9e68d56e7779b478d2bc09fbbedcf28976b.tar.gz
openembedded-core-7540b9e68d56e7779b478d2bc09fbbedcf28976b.tar.bz2
openembedded-core-7540b9e68d56e7779b478d2bc09fbbedcf28976b.zip
grub-efi.bbclass: Fix path in startup.nsh for iso image.
The path in startup.nsh for iso image is corrupted as follows: fs0:\EFI\BOOT^Hootx64.efi Using printf will emit correct path which is: fs0:\EFI\BOOT\bootx64.efi This happens because of echo command. Switching to printf like the one used in efi_populate() function. Signed-off-by: Pranav Tipnis <pranav.tipnis@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/grub-efi.bbclass')
-rw-r--r--meta/classes/grub-efi.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/grub-efi.bbclass b/meta/classes/grub-efi.bbclass
index ae8ee382cd..178d0c8350 100644
--- a/meta/classes/grub-efi.bbclass
+++ b/meta/classes/grub-efi.bbclass
@@ -59,7 +59,7 @@ efi_iso_populate() {
cp $iso_dir/${EFIDIR}/* ${EFIIMGDIR}${EFIDIR}
cp $iso_dir/vmlinuz ${EFIIMGDIR}
EFIPATH=$(echo "${EFIDIR}" | sed 's/\//\\/g')
- echo "fs0:${EFIPATH}\\${GRUB_IMAGE}" > ${EFIIMGDIR}/startup.nsh
+ printf 'fs0:%s\%s\n' "$EFIPATH" "$GRUB_IMAGE" > ${EFIIMGDIR}/startup.nsh
if [ -f "$iso_dir/initrd" ] ; then
cp $iso_dir/initrd ${EFIIMGDIR}
fi