File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ #! /system/bin/sh
2
+ # generate user files in the bootstrap
3
+
4
+ mkdir -p bootstrap/home/$1
5
+ echo " $1 :x:$USER_ID :$USER_ID :guest:/home/$1 :/bin/sh" >> bootstrap/etc/passwd
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ build_bootstrap () {
52
52
curl -o rootfs.tar.xz -L " https://us.images.linuxcontainers.org/images/alpine/3.13/$1 /default/20210330_13:00/rootfs.tar.xz"
53
53
cp ../../run-bootstrap.sh .
54
54
cp ../../install-bootstrap.sh .
55
- zip -r bootstrap-$PROOT_ARCH .zip root root-pre5 rootfs.tar.xz run-bootstrap.sh install-bootstrap.sh
55
+ zip -r bootstrap-$PROOT_ARCH .zip root root-pre5 rootfs.tar.xz run-bootstrap.sh install-bootstrap.sh add-user.sh
56
56
mv bootstrap-$PROOT_ARCH .zip ../
57
57
echo " Packed bootstrap $1 "
58
58
cd ..
@@ -61,4 +61,4 @@ build_bootstrap () {
61
61
build_bootstrap arm64
62
62
build_bootstrap armhf
63
63
build_bootstrap amd64
64
- build_bootstrap i386
64
+ build_bootstrap i386
You can’t perform that action at this time.
0 commit comments