Skip to content

Commit 38c8894

Browse files
committed
.
1 parent f8d1352 commit 38c8894

File tree

7 files changed

+24
-67
lines changed

7 files changed

+24
-67
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
*~
2+
/rootfs.*.base
3+
/menu.json
4+
/kual-linuxdeploy-armhf.zip

Makefile

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
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+
215
menu.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

lib.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,8 @@ umount_rootfs_all(){
8787
resize_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

9794
install_alpine_rootfs(){

menu.json

Lines changed: 0 additions & 46 deletions
This file was deleted.

rootfs.ext3.base

-1.22 MB
Binary file not shown.

rootfs.ext4.base

-1.5 MB
Binary file not shown.

rootfs.extX.base.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)