fix grub-mkimage; mkdosfs is obsolete
This commit is contained in:
parent
2ffec5929d
commit
4b75e60183
|
|
@ -172,14 +172,11 @@ EOF
|
||||||
tar -cvf memdisk boot
|
tar -cvf memdisk boot
|
||||||
|
|
||||||
# make the grub image
|
# make the grub image
|
||||||
cat <<EOF | sudo tee ${strapdir}/grubmkimage
|
grub-mkimage -O "x86_64-efi" -m "memdisk" -o "bootx64.efi" \
|
||||||
#!/bin/sh
|
-p '(memdisk)/boot/grub' \
|
||||||
grub-mkimage -O "x86_64-efi" -m "memdisk" -o "bootx64.efi" \
|
search iso9660 configfile normal memdisk tar cat \
|
||||||
-p '(memdisk)/boot/grub' \
|
part_msdos part_gpt fat ext2 ntfs ntfscomp hfsplus \
|
||||||
search iso9660 configfile normal memdisk tar cat \
|
chain boot linux
|
||||||
part_msdos part_gpt fat ext2 ntfs ntfscomp hfsplus \
|
|
||||||
chain boot linux
|
|
||||||
EOF
|
|
||||||
chroot-script -d grubmkimage
|
chroot-script -d grubmkimage
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
@ -188,7 +185,7 @@ EOF
|
||||||
|
|
||||||
# Do the boot image "boot/grub/efiboot.img"
|
# Do the boot image "boot/grub/efiboot.img"
|
||||||
dd if=/dev/zero of=boot/grub/efiboot.img bs=1K count=1440
|
dd if=/dev/zero of=boot/grub/efiboot.img bs=1K count=1440
|
||||||
/sbin/mkdosfs -F 12 boot/grub/efiboot.img
|
mkfs.vfat -F 12 boot/grub/efiboot.img
|
||||||
|
|
||||||
sudo mkdir img-mnt
|
sudo mkdir img-mnt
|
||||||
sudo mount -o loop boot/grub/efiboot.img img-mnt
|
sudo mount -o loop boot/grub/efiboot.img img-mnt
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue