From 088368eadf2f44d86a19490b8743acbbeca99429 Mon Sep 17 00:00:00 2001 From: Thomas Glanzmann Date: Tue, 25 Jan 2022 20:31:19 +0100 Subject: [PATCH] build filesystem --- bootstrap.sh | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 870f424..eeb3a0e 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -95,11 +95,28 @@ build_stick() ) } +build_fs() +{ +( + rm -f media + dd if=/dev/zero of=media bs=1 count=0 seek=1G + mkdir -p mnt + mkfs.ext4 media + tune2fs -O extents,uninit_bg,dir_index -m 0 -c 0 -i 0 media + sudo mount -o loop media mnt + sudo cp -a testing/* mnt/ + sudo rm mnt/init + sudo umount mnt + tar cf - media | pigz > m1.tgz +) +} + mkdir -p build cd build -# build_m1n1 -# build_uboot -# build_linux -# build_rootfs +build_m1n1 +build_uboot +build_linux +build_rootfs build_stick +build_fs -- 2.39.5