diff options
-rw-r--r-- | meta/classes/grub-efi.bbclass | 3 | ||||
-rw-r--r-- | meta/classes/gummiboot.bbclass | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/grub-efi.bbclass b/meta/classes/grub-efi.bbclass index 4ddc2bb125..9a4220abdc 100644 --- a/meta/classes/grub-efi.bbclass +++ b/meta/classes/grub-efi.bbclass | |||
@@ -52,7 +52,8 @@ efi_iso_populate() { | |||
52 | mkdir -p ${EFIIMGDIR}/${EFIDIR} | 52 | mkdir -p ${EFIIMGDIR}/${EFIDIR} |
53 | cp $iso_dir/${EFIDIR}/* ${EFIIMGDIR}${EFIDIR} | 53 | cp $iso_dir/${EFIDIR}/* ${EFIIMGDIR}${EFIDIR} |
54 | cp $iso_dir/vmlinuz ${EFIIMGDIR} | 54 | cp $iso_dir/vmlinuz ${EFIIMGDIR} |
55 | echo "${GRUB_IMAGE}" > ${EFIIMGDIR}/startup.nsh | 55 | EFIPATH=$(echo "${EFIDIR}" | sed 's/\//\\/g') |
56 | echo "fs0:${EFIPATH}\\${GRUB_IMAGE}" > ${EFIIMGDIR}/startup.nsh | ||
56 | if [ -f "$iso_dir/initrd" ] ; then | 57 | if [ -f "$iso_dir/initrd" ] ; then |
57 | cp $iso_dir/initrd ${EFIIMGDIR} | 58 | cp $iso_dir/initrd ${EFIIMGDIR} |
58 | fi | 59 | fi |
diff --git a/meta/classes/gummiboot.bbclass b/meta/classes/gummiboot.bbclass index 3d9c08bbc9..9a97ac1753 100644 --- a/meta/classes/gummiboot.bbclass +++ b/meta/classes/gummiboot.bbclass | |||
@@ -46,7 +46,8 @@ efi_iso_populate() { | |||
46 | mkdir -p ${EFIIMGDIR}/${EFIDIR} | 46 | mkdir -p ${EFIIMGDIR}/${EFIDIR} |
47 | cp $iso_dir/${EFIDIR}/* ${EFIIMGDIR}${EFIDIR} | 47 | cp $iso_dir/${EFIDIR}/* ${EFIIMGDIR}${EFIDIR} |
48 | cp $iso_dir/vmlinuz ${EFIIMGDIR} | 48 | cp $iso_dir/vmlinuz ${EFIIMGDIR} |
49 | echo "${DEST_EFI_IMAGE}" > ${EFIIMGDIR}/startup.nsh | 49 | EFIPATH=$(echo "${EFIDIR}" | sed 's/\//\\/g') |
50 | echo "fs0:${EFIPATH}\\${DEST_EFI_IMAGE}" > ${EFIIMGDIR}/startup.nsh | ||
50 | if [ -f "$iso_dir/initrd" ] ; then | 51 | if [ -f "$iso_dir/initrd" ] ; then |
51 | cp $iso_dir/initrd ${EFIIMGDIR} | 52 | cp $iso_dir/initrd ${EFIIMGDIR} |
52 | fi | 53 | fi |