Skip to content

Commit 0caa01b

Browse files
fix: add plucky
1 parent fbdff92 commit 0caa01b

File tree

2 files changed

+88
-1
lines changed

2 files changed

+88
-1
lines changed

fs-cook

suites/plucky/raw/raw.sh

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
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="plucky"
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+
cp $ROOT_DIR/core/pv/pv-${t_arch}.deb $chroot_dir
60+
run_cmd "dpkg -i /pv-${t_arch}.deb"
61+
run_cmd "rm /pv-${t_arch}.deb"
62+
63+
# clean any archive if exits
64+
apt-get clean
65+
66+
}
67+
68+
# Option to build specific arch
69+
# arch name as $1
70+
71+
case $1 in
72+
arm64 | armhf | amd64) _arch="$1" ;;
73+
all | -a) _arch="armhf arm64 amd64" ;;
74+
*) die "Unknown arch option [ Allowed: arm64, armhf, amd64, all(for all 3) ]" ;;
75+
esac
76+
77+
for arch in ${_arch}; do
78+
shout "Bootstrapping $SUITE [${arch}] ...."
79+
do_build "${frn}-${arch}" "${arch}"
80+
shout "packing up the raw file systems..."
81+
do_compress "${frn}-${arch}"
82+
shout "unmounting the raw file systems from host..."
83+
do_unmount "${frn}-${arch}"
84+
done
85+
86+
shout "Build Complete.."
87+
ls ${frn}*tar*

0 commit comments

Comments
 (0)