public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH 0/1] Fix corrupted path in startup.nsh for iso image
@ 2016-08-20  1:28 Pranav Tipnis
  2016-08-20  1:28 ` [PATCH 1/1] grub-efi.bbclass: Fix " Pranav Tipnis
  0 siblings, 1 reply; 3+ messages in thread
From: Pranav Tipnis @ 2016-08-20  1:28 UTC (permalink / raw)
  To: openembedded-core

Hi,

startup.nsh for iso image has corrupted text because of echo command.
This patch switches to printf similar to the one submitted by
Christopher Larson for non-iso image.

Regards,
Pranav

Pranav Tipnis (1):
  grub-efi.bbclass: Fix path in startup.nsh for iso image.

 meta/classes/grub-efi.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
1.9.1



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] grub-efi.bbclass: Fix path in startup.nsh for iso image.
  2016-08-20  1:28 [PATCH 0/1] Fix corrupted path in startup.nsh for iso image Pranav Tipnis
@ 2016-08-20  1:28 ` Pranav Tipnis
  2016-08-25 17:04   ` Khem Raj
  0 siblings, 1 reply; 3+ messages in thread
From: Pranav Tipnis @ 2016-08-20  1:28 UTC (permalink / raw)
  To: openembedded-core

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>
---
 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



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] grub-efi.bbclass: Fix path in startup.nsh for iso image.
  2016-08-20  1:28 ` [PATCH 1/1] grub-efi.bbclass: Fix " Pranav Tipnis
@ 2016-08-25 17:04   ` Khem Raj
  0 siblings, 0 replies; 3+ messages in thread
From: Khem Raj @ 2016-08-25 17:04 UTC (permalink / raw)
  To: OE-core, Burton, Ross

[-- Attachment #1: Type: text/plain, Size: 1382 bytes --]


> On Aug 19, 2016, at 6:28 PM, Pranav Tipnis <pranav.tipnis@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@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@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-08-25 17:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-20  1:28 [PATCH 0/1] Fix corrupted path in startup.nsh for iso image Pranav Tipnis
2016-08-20  1:28 ` [PATCH 1/1] grub-efi.bbclass: Fix " Pranav Tipnis
2016-08-25 17:04   ` Khem Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox