Signed-off-by: RouxAntoine <antoinroux@hotmail.fr>
This commit is contained in:
RouxAntoine 2024-01-05 14:55:09 +01:00
parent 0ce44f6e7b
commit 507d7025c7
Signed by: antoine
GPG Key ID: 098FB66FC0475E70

View File

@ -2,12 +2,12 @@
# inspired by https://github.com/oraoto/archlinux-firecracker/blob/master/scripts/build-arch-rootfs.sh # inspired by https://github.com/oraoto/archlinux-firecracker/blob/master/scripts/build-arch-rootfs.sh
set -x
DISK_SIZE=10G DISK_SIZE=10G
DISK_FILE=../out/arch-rootfs.ext4 DISK_FILE=../out/arch-rootfs.ext4
DISK_ROOT=../out/mount DISK_ROOT=../out/mount
cd $(dirname "${BASH_SOURCE[0]}")
# Allocate rootfs disk # Allocate rootfs disk
dd if=/dev/zero of="$DISK_FILE" bs=1M count="$DISK_SIZE" dd if=/dev/zero of="$DISK_FILE" bs=1M count="$DISK_SIZE"
mkfs.ext4 $DISK_FILE mkfs.ext4 $DISK_FILE