Skip to content

Commit 3d4c4c6

Browse files
add more sources and SUITE to build file
1 parent f496eab commit 3d4c4c6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

core/default/mate/build.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#!/usr/bin/env bash
22

3+
# Recomended only with ubuntu distros ( best: hirsute )
4+
35
export INCLUDE_PACKAGES
46
export NO_COMPRESSION
7+
export SUITE
58

69
BUILDNAME="mate"
710
ROOT_DIR="$(git rev-parse --show-toplevel)"
@@ -13,6 +16,7 @@ OUT_DIR="${ROOT_DIR}/out/${BUILDNAME}"
1316
BUILD_ARCH="aarch64 armhf amd64"
1417
PLUGIN_DIR="${ROOT_DIR}/plugins"
1518
INCLUDE_PACKAGES="$(cat "$INCLUDE_LIST")"
19+
SUITE="hirsute"
1620
ADDITIONAL_CONF=false
1721
#shellcheck disable=SC2034
1822
ENABLE_EXIT=true
@@ -40,6 +44,12 @@ function stage_one() {
4044

4145
function second_stage()
4246
{
47+
# => resolv sources.list
48+
echo -e "deb http://ports.ubuntu.com/ubuntu-ports ${SUITE} main restricted\n\
49+
deb-src http://archive.ubuntu.com/ubuntu/ ${SUITE} universe\n\
50+
deb http://ports.ubuntu.com/ubuntu-ports ${SUITE} universe\n" >> "${OUT_DIR}-${_arch}"/etc/apt/sources.list
51+
52+
4353
if [ -f "$EXTRA_CONFIG_SCRIPT" ]; then
4454
echo -e "${GREEN}Stage 2: Running extra config script${NC}"
4555
$SUDO cp "$EXTRA_CONFIG_SCRIPT" "${OUT_DIR}-${_arch}/root"

0 commit comments

Comments
 (0)