From 807b1683676a120704712c2f4eba2ce787ce35d5 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Wed, 1 Jun 2022 11:02:46 +0900 Subject: [PATCH] install deps in setup-yama --- README.md | 2 +- bin/build | 1 - bin/img-gen | 4 ++-- compose.yml | 15 --------------- fstab | 2 -- src/bootfs/setup-yama | 5 +++++ 6 files changed, 8 insertions(+), 21 deletions(-) delete mode 100644 fstab diff --git a/README.md b/README.md index dcc0a93..ad71dcb 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ bin/build - Docker - Docker Compose - qemu-user-static -- awk, curl, fallocate, gzip, losetup, mkfs.ext4, mkfs.fat, parted, python3, tar, xargs +- curl, fallocate, gzip, losetup, mkfs.ext4, mkfs.fat, parted, python3, tar, xargs ## ライセンス diff --git a/bin/build b/bin/build index 31f78f8..40960b6 100755 --- a/bin/build +++ b/bin/build @@ -12,7 +12,6 @@ bin/download "${version}" dist docker compose run --rm minirootfs sh -c 'apk update && apk add' cp -a src/bootfs/* cache -t dist bin/overlay-gen dist/overlay.img -docker compose run --rm builder tar czf dist/localhost.apkovl.tar.gz --owner=0 --group=0 -C src/rootfs . tar czf yama-armhf.tar.gz --owner=0 --group=0 -C dist . bin/img-gen yama-armhf.img diff --git a/bin/img-gen b/bin/img-gen index 02f44ca..9afb195 100755 --- a/bin/img-gen +++ b/bin/img-gen @@ -1,10 +1,10 @@ #!/bin/sh # デバイスイメージファイルの生成 # Usage: bin/img-gen yama-armhf.img -# Required: gzip awk fallocate parted xargs losetup mkfs.fat tar +# Required: gzip fallocate parted xargs losetup mkfs.fat tar cd -- "$(dirname -- "$0")/.." set -eux -size="$(gzip -l yama-armhf.tar.gz | awk 'END{printf"%.f",$2*1.02}')" +size=768m image="$1" fallocate -l "${size}" "${image}" xargs -l parted -s "${image}" < /etc/wpa_supplicant/wpa_supplicant.conf service wpa_supplicant restart @@ -23,5 +27,6 @@ fi lbu include /root lbu commit -d mmcblk0p1 +install_packages rm -f -- "$0" echo ok