Skip to content

Commit d65d009

Browse files
add additional_setup() to builds
1 parent 438390e commit d65d009

File tree

2 files changed

+78
-9
lines changed

2 files changed

+78
-9
lines changed

build-impish-raw.sh

Lines changed: 37 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,45 @@ ENABLE_EXIT=true
1919
ENABLE_USER_SETUP=false
2020

2121
additional_setup() {
22-
shout "additional_setup"
23-
run_cmd echo deb $MIRROR focal main restricted \> /etc/apt/sources.list
24-
run_cmd echo deb-src $MIRROR focal main restricted \> /etc/apt/sources.list
25-
run_cmd echo deb $MIRROR focal-updates universe \> /etc/apt/sources.list
26-
run_cmd echo deb-src $MIRROR focal-updates universe \> /etc/apt/sources.list
27-
run_cmd echo deb $MIRROR focal multiverse \> /etc/apt/sources.list
28-
run_cmd echo deb-src $MIRROR focal multiverse \> /etc/apt/sources.list
22+
cat <<- EOF > $chroot_dir/etc/apt/sources.list
23+
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
24+
# newer versions of the distribution.
25+
deb $MIRROR $SUITE main restricted
26+
# deb-src $MIRROR $SUITE main restricted
2927
30-
run_cmd "apt-get update"
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+
33+
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
34+
## team. Also, please note that software in universe WILL NOT receive any
35+
## review or updates from the Ubuntu security team.
36+
deb $MIRROR $SUITE universe
37+
# deb-src $MIRROR $SUITE universe
38+
deb $MIRROR $SUITE-updates universe
39+
# deb-src $MIRROR $SUITE-updates universe
40+
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+
51+
## N.B. software from this repository may not have been tested as
52+
## extensively as that contained in the main release, although it includes
53+
## newer versions of some applications which may provide useful features.
54+
## Also, please note that software in backports WILL NOT receive any review
55+
## or updates from the Ubuntu security team.
56+
deb $MIRROR $SUITE-backports main restricted universe multiverse
57+
# deb-src $MIRROR $SUITE-backports main restricted universe multiverse
58+
59+
EOF
3160

32-
install_pkg "lz4 bzip2 gzip bc pv"
3361
}
3462

3563
do_build "${frn}-arm64" arm64

cook.sh

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,47 @@ OVERRIDER_COMPRESSION_TYPE="gzip"
1818
ENABLE_EXIT=true
1919
ENABLE_USER_SETUP=false
2020

21+
additional_setup() {
22+
cat <<- EOF > $chroot_dir/etc/apt/sources.list
23+
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
24+
# newer versions of the distribution.
25+
deb $MIRROR $SUITE main restricted
26+
# deb-src $MIRROR $SUITE main restricted
27+
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+
33+
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
34+
## team. Also, please note that software in universe WILL NOT receive any
35+
## review or updates from the Ubuntu security team.
36+
deb $MIRROR $SUITE universe
37+
# deb-src $MIRROR $SUITE universe
38+
deb $MIRROR $SUITE-updates universe
39+
# deb-src $MIRROR $SUITE-updates universe
40+
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+
51+
## N.B. software from this repository may not have been tested as
52+
## extensively as that contained in the main release, although it includes
53+
## newer versions of some applications which may provide useful features.
54+
## Also, please note that software in backports WILL NOT receive any review
55+
## or updates from the Ubuntu security team.
56+
deb $MIRROR $SUITE-backports main restricted universe multiverse
57+
# deb-src $MIRROR $SUITE-backports main restricted universe multiverse
58+
59+
EOF
60+
}
61+
2162
do_build "${frn}-arm64" arm64
2263
do_compress "${frn}-arm64"
2364
do_build "${frn}-armhf" armhf

0 commit comments

Comments
 (0)