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