Updated
Signed-off-by: RouxAntoine <antoinroux@hotmail.fr>
This commit is contained in:
parent
0ce44f6e7b
commit
507d7025c7
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user