From 5cc85165b18cec1f1be025b1bf094dcba6d89738 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Sun, 3 Mar 2024 20:43:35 +0100 Subject: [PATCH] use option -C for mkfs.vfat instead of calling dd --- bin/fai-cd | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/fai-cd b/bin/fai-cd index cef383b56..3bc2cc9a6 100755 --- a/bin/fai-cd +++ b/bin/fai-cd @@ -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