[OE-core] [PATCH 1/1] grub-efi.bbclass: Fix path in startup.nsh for iso image.

Khem Raj raj.khem at gmail.com
Thu Aug 25 17:04:32 UTC 2016


> On Aug 19, 2016, at 6:28 PM, Pranav Tipnis <pranav.tipnis at intel.com> wrote:
> 
> 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.

This patch is ok

> 
> Signed-off-by: Pranav Tipnis <pranav.tipnis at intel.com>
> ---
> meta/classes/grub-efi.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/classes/grub-efi.bbclass b/meta/classes/grub-efi.bbclass
> index ae8ee38..178d0c8 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
> --
> 1.9.1
> 
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160825/e3c64c14/attachment-0002.sig>


More information about the Openembedded-core mailing list