From b61befb04f0e9217e40ec670759bd0e3e51c83e7 Mon Sep 17 00:00:00 2001 From: RouxAntoine Date: Fri, 5 Jan 2024 15:23:11 +0100 Subject: [PATCH] Is there an achievement for this? Signed-off-by: RouxAntoine --- rootf-kernel/rootfs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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