File tree Expand file tree Collapse file tree 7 files changed +24
-67
lines changed Expand file tree Collapse file tree 7 files changed +24
-67
lines changed Original file line number Diff line number Diff line change 11* ~
2+ /rootfs. * .base
3+ /menu.json
4+ /kual-linuxdeploy-armhf.zip
Original file line number Diff line number Diff line change 1- all : menu.json
1+ all : kual-linuxdeploy-armhf.zip
2+
3+ rootfs.ext3.base :
4+ dd if=/dev/zero of=rootfs.ext3.base bs=10M count=1
5+ mkfs.ext3 rootfs.ext3.base
6+ resize2fs rootfs.ext3.base 1248
7+ tune2fs -i 0 -c 0 rootfs.ext3.base
8+
9+ rootfs.ext4.base :
10+ dd if=/dev/zero of=rootfs.ext4.base bs=10M count=1
11+ mkfs.ext3 rootfs.ext4.base
12+ resize2fs rootfs.ext4.base 1539
13+ tune2fs -i 0 -c 0 rootfs.ext4.base
14+
215menu.json : gen.menu.json.js
316 ./gen.menu.json.js > menu.json
17+
18+ kual-linuxdeploy-armhf.zip : chroot.shell.sh config.xml install.alpine.sh lib.sh LICENSE remove.sh resize.sh rootfs.ext3.base rootfs.ext4.base umount.sh menu.json
19+ rm -f $@
20+ $(MAKE ) -C ./e2fsprogs/
21+ 7z a $@ $^ ./e2fsprogs/out/sbin/resize2fs
Original file line number Diff line number Diff line change @@ -87,11 +87,8 @@ umount_rootfs_all(){
8787resize_rootfs_interactive (){
8888 [ -f " $ROOTFS_LOCK " ] && fail " rootfs mounted."
8989 echo " Please enter the rootfs size and press Enter (e.g. 1000M):"
90- if read ROOTFS_SIZE && [ -n " $ROOTFS_SIZE " ]; then
91- resize2fs " $ROOTFS_IMG " " $ROOTFS_SIZE " || fail " cannot resize."
92- else
93- resize2fs " $ROOTFS_IMG " 512M || fail " cannot resize."
94- fi
90+ read ROOTFS_SIZE || fail " cannot read input."
91+ " $BIN " /resize2fs " $ROOTFS_IMG " " $ROOTFS_SIZE " || fail " cannot resize."
9592}
9693
9794install_alpine_rootfs (){
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments