[go: nahoru, domu]

Skip to content

Commit

Permalink
use option -C for mkfs.vfat instead of calling dd
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Mar 3, 2024
1 parent 771470a commit 5cc8516
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/fai-cd
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,7 @@ create_grub2_image() {
"boot/grub/grub.cfg=/tmp/grub.cfg"
mv $NFSROOT/tmp/bootx64.efi $scratch

dd if=/dev/zero of=$scratch/efiboot.img bs=1M count=6 2>/dev/null
mkfs.vfat $scratch/efiboot.img >/dev/null
mkfs.vfat -C $scratch/efiboot.img 6000 >/dev/null
mmd -i $scratch/efiboot.img efi efi/boot
mcopy -i $scratch/efiboot.img $scratch/bootx64.efi ::efi/boot/
else
Expand Down

0 comments on commit 5cc8516

Please sign in to comment.