summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip J Freeman <elektron@halo.nu>2026-04-24 22:53:48 -0700
committerPhilip J Freeman <elektron@halo.nu>2026-04-24 22:54:59 -0700
commit3f32def2e2a8df3eb0f81597092b375a27765be4 (patch)
tree9241baf465afa1d83eee6d49a308ee71cd35b742
parent4b945e722edf86177fd625359e0dad8b5538e867 (diff)
-rwxr-xr-xbuild-os6
-rw-r--r--config2
-rwxr-xr-xhooks/build-os/10-apt6
3 files changed, 9 insertions, 5 deletions
diff --git a/build-os b/build-os
index 01cfaee..652ea09 100755
--- a/build-os
+++ b/build-os
@@ -28,7 +28,7 @@ mkdir -p "$root"
# bootstrap the OS
-debootstrap "$codename" "$root"
+debootstrap "$codename" "$root" "$deb_mirror_url"
for dir in /proc /sys /dev; do
mount --bind "$dir" "$root"/"$dir"
@@ -45,7 +45,9 @@ export remote
export build
export buildenv
export arch
-
+export codename
+export deb_mirror_url
+export deb_security_mirror_url
run-parts --exit-on-error -- hooks/build-os
diff --git a/config b/config
index 0164380..6dd4249 100644
--- a/config
+++ b/config
@@ -2,6 +2,8 @@ osname=halo
osversion=01
osdesc="Down In It"
codename=trixie
+deb_mirror_url="http://deb.debian.org/debian"
+deb_security_mirror_url="http://security.debian.org/debian-security"
build=main
buildenv=dev
diff --git a/hooks/build-os/10-apt b/hooks/build-os/10-apt
index be2059b..3877661 100755
--- a/hooks/build-os/10-apt
+++ b/hooks/build-os/10-apt
@@ -3,9 +3,9 @@ set -o pipefail
# Enable additional sources
cat > "${root:?}"/etc/apt/sources.list << EOF
-deb http://deb.debian.org/debian trixie main contrib non-free non-free-firmware
-deb http://deb.debian.org/debian trixie-updates main contrib non-free non-free-firmware
-deb http://security.debian.org/debian-security trixie-security main contrib non-free non-free-firmware
+deb ${deb_mirror_url:?} ${codename:?} main contrib non-free non-free-firmware
+deb ${deb_mirror_url:?} ${codename:?}-updates main contrib non-free non-free-firmware
+deb ${deb_security_mirror_url:?} ${codename:?}-security main contrib non-free non-free-firmware
EOF
# update/upgrade system