diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-10-18 07:08:41 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-10-18 07:25:46 +0000 |
commit | a1416cdb96321ad1ecec968c1637bfa1cbb54b36 (patch) | |
tree | ea391f43d72e256144cfe2699fedc11d68c61476 /scripts | |
parent | 12dc02f4ddf48763d449e8abc1fbf6fcedb390ac (diff) | |
download | aports-a1416cdb96321ad1ecec968c1637bfa1cbb54b36.tar.bz2 aports-a1416cdb96321ad1ecec968c1637bfa1cbb54b36.tar.xz |
scripts/mkimg.base: improve .iso efi support
- use efi.img as the image name (Rufus recognizes it)
- drop need for dosfstools, use mformat from mtools instead
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mkimg.base.sh | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/scripts/mkimg.base.sh b/scripts/mkimg.base.sh index f326d8605c..2e904ba629 100755 --- a/scripts/mkimg.base.sh +++ b/scripts/mkimg.base.sh @@ -170,6 +170,8 @@ build_grubefi_img() { local _efi="$2" local _tmpdir="$WORKDIR/efiboot.$3" + # extra packages needed: grub-efi mtools + # Prepare grub-efi bootloader mkdir -p "$_tmpdir/efi/boot" grub_gen_earlyconf > "$_tmpdir"/grub_early.cfg @@ -182,12 +184,9 @@ build_grubefi_img() { $grub_mod # Create the EFI image - # mkdosfs and mkfs.vfat are busybox applets which failed to create a proper image - # use dosfstools mkfs.fat instead mkdir -p ${DESTDIR}/boot/grub/ - dd if=/dev/zero of=${DESTDIR}/boot/grub/efiboot.img bs=1K count=1440 - mkfs.fat -F 12 ${DESTDIR}/boot/grub/efiboot.img - mcopy -s -i ${DESTDIR}/boot/grub/efiboot.img $_tmpdir/efi :: + mformat -i ${DESTDIR}/boot/grub/efi.img -C -f 1440 :: + mcopy -i ${DESTDIR}/boot/grub/efi.img -s $_tmpdir/efi :: } section_grubieee1275() { @@ -237,21 +236,21 @@ create_image_iso() { -boot-info-table " fi - if [ -e "${DESTDIR}/boot/grub/efiboot.img" ]; then + if [ -e "${DESTDIR}/boot/grub/efi.img" ]; then # efi boot enabled if [ -z "$_isolinux" ]; then # efi boot only _efiboot=" -efi-boot-part --efi-boot-image - -e boot/grub/efiboot.img + -e boot/grub/efi.img -no-emul-boot " else # hybrid isolinux+efi boot _efiboot=" -eltorito-alt-boot - -e boot/grub/efiboot.img + -e boot/grub/efi.img -no-emul-boot -isohybrid-gpt-basdat " |