Skip to content

Commit b4515c8

Browse files
committed
added jammy build script
1 parent 32d125e commit b4515c8

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

build-jammy.sh

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
#!/usr/bin/env bash
2+
#shellcheck disable=SC1091
3+
4+
# this is an example file to BUILD raw file system
5+
# export variable SUITE to set debootstrap suite name (default: hirsute)
6+
7+
source plugins/envsetup
8+
9+
export OVERRIDER_COMPRESSION_TYPE
10+
export SUITE
11+
export ENABLE_EXIT
12+
export ENABLE_USER_SETUP
13+
14+
SUITE="jammy"
15+
frn="out/$SUITE-raw"
16+
OVERRIDER_COMPRESSION_TYPE="gzip"
17+
ENABLE_EXIT=true
18+
ENABLE_USER_SETUP=false
19+
20+
additional_setup() {
21+
cat <<- EOF > $chroot_dir/etc/apt/sources.list
22+
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
23+
# newer versions of the distribution.
24+
deb $MIRROR $SUITE main restricted
25+
# deb-src $MIRROR $SUITE main restricted
26+
## Major bug fix updates produced after the final release of the
27+
## distribution.
28+
deb $MIRROR $SUITE-updates main restricted
29+
# deb-src $MIRROR $SUITE-updates main restricted
30+
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
31+
## team. Also, please note that software in universe WILL NOT receive any
32+
## review or updates from the Ubuntu security team.
33+
deb $MIRROR $SUITE universe
34+
# deb-src $MIRROR $SUITE universe
35+
deb $MIRROR $SUITE-updates universe
36+
# deb-src $MIRROR $SUITE-updates universe
37+
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
38+
## team, and may not be under a free licence. Please satisfy yourself as to
39+
## your rights to use the software. Also, please note that software in
40+
## multiverse WILL NOT receive any review or updates from the Ubuntu
41+
## security team.
42+
deb $MIRROR $SUITE multiverse
43+
# deb-src $MIRROR $SUITE multiverse
44+
deb $MIRROR $SUITE-updates multiverse
45+
# deb-src $MIRROR $SUITE-updates multiverse
46+
## N.B. software from this repository may not have been tested as
47+
## extensively as that contained in the main release, although it includes
48+
## newer versions of some applications which may provide useful features.
49+
## Also, please note that software in backports WILL NOT receive any review
50+
## or updates from the Ubuntu security team.
51+
deb $MIRROR $SUITE-backports main restricted universe multiverse
52+
# deb-src $MIRROR $SUITE-backports main restricted universe multiverse
53+
EOF
54+
55+
}
56+
57+
do_build "${frn}-arm64" arm64
58+
do_compress "${frn}-arm64"
59+
do_build "${frn}-armhf" armhf
60+
do_compress "${frn}-armhf"
61+
do_build "${frn}-amd64" amd64
62+
do_compress "${frn}-amd64"
63+
64+
do_unmount "${frn}-arm64"
65+
do_unmount "${frn}-armhf"
66+
do_unmount "${frn}-amd64"
67+
68+
shout "Build complete..."
69+
ls $frn*tar*
70+

0 commit comments

Comments
 (0)