Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 387a28d

Browse files
committed
Script for deploy all configurations and save it as tgz
1 parent 9d12ceb commit 387a28d

File tree

2 files changed

+33
-5
lines changed

2 files changed

+33
-5
lines changed

‎README.md‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,14 @@ Help for the parameters of the main components:
7676
Architecture of Linux distribution, supported "armel", "armhf", "arm64", "i386" and "amd64".
7777
7878
--suite="stretch"
79-
Version of Linux distribution, supported versions "wheezy", "jessie" and "stretch" (also can be used "stable", "testing" and "unstable").
79+
Version of Linux distribution, supported versions "jessie", "stretch" and "buster" (also can be used "stable", "testing", "unstable" or "oldstable").
8080
8181
--source-path="http://ftp.debian.org/debian/"
8282
Installation source, can specify address of the repository or path to the rootfs archive.
8383
84+
--extra-packages=""
85+
List of optional installation packages, separated by spaces.
86+
8487
--method="chroot"
8588
Containerization method "chroot" or "proot".
8689
@@ -99,21 +102,21 @@ Help for the parameters of the main components:
99102
--net-trigger=""
100103
Path to a script inside the container to process changes the network.
101104
102-
--locale="en_US.UTF-8"
103-
Localization, e.g. "ru_RU.UTF-8".
105+
--locale="C"
106+
Localization, e.g. "en_US.UTF-8".
104107
105108
--user-name="android"
106109
Username that will be created in the container.
107110
108111
--user-password="changeme"
109112
Password will be assigned to the specified user.
110113
111-
--privileged-users="root messagebus"
114+
--privileged-users="android messagebus"
112115
A list of users separated by a space to be added to Android groups.
113116
114117
```
115118

116119
### Links
117120

118121
- Source code: https://github.com/meefik/linuxdeploy-cli
119-
- Donations: http://meefik.github.io/donate
122+
- Donations: https://meefik.github.io/donate

‎make_rootfs.sh‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
EXTERNAL_STORAGE="1ドル"
4+
[ -n "${EXTERNAL_STORAGE}" ] || EXTERNAL_STORAGE="./rootfs"
5+
[ -e "${EXTERNAL_STORAGE}" ] || mkdir -p "${EXTERNAL_STORAGE}"
6+
7+
CONFIG_DIR="2ドル"
8+
[ -n "${CONFIG_DIR}" ] || CONFIG_DIR="./config"
9+
10+
find "${CONFIG_DIR}" -type f -name "*.conf" | sort | while read cfg_file
11+
do
12+
cfg_name="$(basename ${cfg_file%.*})"
13+
tgz_file="${EXTERNAL_STORAGE}/${cfg_name}.tgz"
14+
[ ! -e "${tgz_file}" ] || continue
15+
(set -e
16+
./cli.sh -d -p "${cfg_name}" deploy
17+
./cli.sh -d -p "${cfg_name}" export "${tgz_file}"
18+
./cli.sh -d -p "${cfg_name}" umount
19+
exit 0)
20+
if [ $? -ne 0 ]
21+
then
22+
echo "Exit with an error!"
23+
exit 1
24+
fi
25+
done

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /