Skip to content

Commit d8afcad

Browse files
Merge pull request #31 from RandomCoderOrg/add-questing-suite
2 parents 64b006e + a55151a commit d8afcad

File tree

2 files changed

+87
-1
lines changed

2 files changed

+87
-1
lines changed

suites/questing/raw/raw.sh

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

0 commit comments

Comments
 (0)