Skip to content

Commit 2617820

Browse files
Merge pull request #2 from RandomCoderOrg/add_hirsute_lts
add hirsute
2 parents 4cb1e07 + d078d7b commit 2617820

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed

suites/hirsute/raw.sh

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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+
export INCLUDE_PACKAGES
14+
15+
SUITE="hirsute"
16+
frn="out/$SUITE-raw"
17+
OVERRIDER_COMPRESSION_TYPE="gzip"
18+
ENABLE_EXIT=true
19+
ENABLE_USER_SETUP=false
20+
INCLUDE_PACKAGES="gpgv"
21+
22+
additional_setup() {
23+
24+
# update sources.list [Only for ubuntu suites]
25+
cat <<-EOF >$chroot_dir/etc/apt/sources.list
26+
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
27+
# newer versions of the distribution.
28+
deb $MIRROR $SUITE main restricted
29+
# deb-src $MIRROR $SUITE main restricted
30+
## Major bug fix updates produced after the final release of the
31+
## distribution.
32+
deb $MIRROR $SUITE-updates main restricted
33+
# deb-src $MIRROR $SUITE-updates main restricted
34+
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
35+
## team. Also, please note that software in universe WILL NOT receive any
36+
## review or updates from the Ubuntu security team.
37+
deb $MIRROR $SUITE universe
38+
# deb-src $MIRROR $SUITE universe
39+
deb $MIRROR $SUITE-updates universe
40+
# deb-src $MIRROR $SUITE-updates universe
41+
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
42+
## team, and may not be under a free licence. Please satisfy yourself as to
43+
## your rights to use the software. Also, please note that software in
44+
## multiverse WILL NOT receive any review or updates from the Ubuntu
45+
## security team.
46+
deb $MIRROR $SUITE multiverse
47+
# deb-src $MIRROR $SUITE multiverse
48+
deb $MIRROR $SUITE-updates multiverse
49+
# deb-src $MIRROR $SUITE-updates multiverse
50+
## N.B. software from this repository may not have been tested as
51+
## extensively as that contained in the main release, although it includes
52+
## newer versions of some applications which may provide useful features.
53+
## Also, please note that software in backports WILL NOT receive any review
54+
## or updates from the Ubuntu security team.
55+
deb $MIRROR $SUITE-backports main restricted universe multiverse
56+
# deb-src $MIRROR $SUITE-backports main restricted universe multiverse
57+
EOF
58+
59+
}
60+
61+
# Option to build specific arch
62+
# arch name as $1
63+
64+
case $1 in
65+
arm64 | armhf | amd64) _arch="$1" ;;
66+
all | -a) _arch="armhf arm64 amd64" ;;
67+
*) die "Unknown arch option [ Allowed: arm64, armhf, amd64, all(for all 3) ]" ;;
68+
esac
69+
70+
for arch in ${_arch}; do
71+
shout "Bootstrapping $SUITE [${arch}] ...."
72+
do_build "${frn}-${arch}" "${arch}"
73+
shout "packing up the raw file systems..."
74+
do_compress "${frn}-${arch}"
75+
shout "unmounting the raw file systems from host..."
76+
do_unmount "${frn}-${arch}"
77+
done
78+
79+
shout "Build Complete.."
80+
ls ${frn}*tar*

0 commit comments

Comments
 (0)