blob: 3a5bef4eae0dd73798c18dca5cfe4bc71b3afb33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
#!/bin/bash
set -e
CMD_DIR="$(realpath $(dirname $0))"
PROJ_DIR="$(realpath $CMD_DIR/..)"
export ROOT="${ROOT:=/opt/muslack64-14.2}"
export TMP="${TMP:=/tmp}"
if [ ! -d "$ROOT" ]; then
>&2 echo "This script expects $ROOT to exist. Maybe you should create it?"
exit 1
fi
(cd "$PROJ_DIR/source/a/aaa_base"
sh *.SlackBuild
)
bwrap \
--unshare-all \
--uid 0 \
--gid 0 \
--ro-bind / / \
--bind /tmp /tmp \
--bind "$ROOT" "$ROOT" \
--dev-bind /dev /dev \
installpkg "$TMP/aaa_base-*.txz"
(cd "$PROJ_DIR/source/l/musl"
bwrap \
--unshare-all \
--uid 0 \
--gid 0 \
--ro-bind / / \
--bind /tmp /tmp \
--dev-bind /dev /dev \
sh *.SlackBuild
)
bwrap \
--unshare-all \
--uid 0 \
--gid 0 \
--ro-bind / / \
--bind /tmp /tmp \
--bind "$ROOT" "$ROOT" \
--dev-bind /dev /dev \
installpkg "$TMP/musl-*.t*z"
(cd "$PROJ_DIR/source/a/etc"
bwrap \
--unshare-all \
--uid 0 \
--gid 0 \
--ro-bind / / \
--bind /tmp /tmp \
--dev-bind /dev /dev \
sh *.SlackBuild
)
bwrap \
--unshare-all \
--uid 0 \
--gid 0 \
--ro-bind / / \
--bind /tmp /tmp \
--bind "$ROOT" "$ROOT" \
--dev-bind /dev /dev \
installpkg "$TMP/etc-*.t*z"
|