diff --git a/rootf-kernel/rootfs.sh b/rootf-kernel/rootfs.sh index 31c90b4..ddccd4e 100755 --- a/rootf-kernel/rootfs.sh +++ b/rootf-kernel/rootfs.sh @@ -9,7 +9,7 @@ DISK_FILE=../out/arch-rootfs.ext4 DISK_ROOT=../out/mount # Allocate rootfs disk -dd if=/dev/zero of="$DISK_FILE" bs=1M count="$DISK_SIZE" +fallocate -l "$DISK_SIZE" "$DISK_FILE" mkfs.ext4 $DISK_FILE # Mount rootfs to mount