diff options
Diffstat (limited to 'meta/classes/grub-efi.bbclass')
-rw-r--r-- | meta/classes/grub-efi.bbclass | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/meta/classes/grub-efi.bbclass b/meta/classes/grub-efi.bbclass index 591bee25ef..96fb98b043 100644 --- a/meta/classes/grub-efi.bbclass +++ b/meta/classes/grub-efi.bbclass | |||
@@ -42,19 +42,20 @@ grubefi_populate() { | |||
42 | } | 42 | } |
43 | 43 | ||
44 | grubefi_iso_populate() { | 44 | grubefi_iso_populate() { |
45 | grubefi_populate ${ISODIR} | 45 | iso_dir=$1 |
46 | grubefi_populate $iso_dir | ||
46 | # Build a EFI directory to create efi.img | 47 | # Build a EFI directory to create efi.img |
47 | mkdir -p ${EFIIMGDIR}/${EFIDIR} | 48 | mkdir -p ${EFIIMGDIR}/${EFIDIR} |
48 | cp ${ISODIR}/${EFIDIR}/* ${EFIIMGDIR}${EFIDIR} | 49 | cp $iso_dir/${EFIDIR}/* ${EFIIMGDIR}${EFIDIR} |
49 | cp ${ISODIR}/vmlinuz ${EFIIMGDIR} | 50 | cp $iso_dir/vmlinuz ${EFIIMGDIR} |
50 | echo "EFI\\BOOT\\${GRUB_IMAGE}" > ${EFIIMGDIR}/startup.nsh | 51 | echo "EFI\\BOOT\\${GRUB_IMAGE}" > ${EFIIMGDIR}/startup.nsh |
51 | if [ -f "${ISODIR}/initrd" ] ; then | 52 | if [ -f "$iso_dir/initrd" ] ; then |
52 | cp ${ISODIR}/initrd ${EFIIMGDIR} | 53 | cp $iso_dir/initrd ${EFIIMGDIR} |
53 | fi | 54 | fi |
54 | } | 55 | } |
55 | 56 | ||
56 | grubefi_hddimg_populate() { | 57 | grubefi_hddimg_populate() { |
57 | grubefi_populate ${HDDDIR} | 58 | grubefi_populate $1 |
58 | } | 59 | } |
59 | 60 | ||
60 | python build_grub_cfg() { | 61 | python build_grub_cfg() { |