diff options
| author | Philip J Freeman <elektron@halo.nu> | 2026-04-24 22:53:48 -0700 |
|---|---|---|
| committer | Philip J Freeman <elektron@halo.nu> | 2026-04-24 22:54:59 -0700 |
| commit | 3f32def2e2a8df3eb0f81597092b375a27765be4 (patch) | |
| tree | 9241baf465afa1d83eee6d49a308ee71cd35b742 | |
| parent | 4b945e722edf86177fd625359e0dad8b5538e867 (diff) | |
make apt urls configurablehalo.01.20260425.234527halo.01.20260424.230051
| -rwxr-xr-x | build-os | 6 | ||||
| -rw-r--r-- | config | 2 | ||||
| -rwxr-xr-x | hooks/build-os/10-apt | 6 |
3 files changed, 9 insertions, 5 deletions
@@ -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 @@ -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 |
