summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xstage0/00-configure-apt/00-run.sh8
-rw-r--r--stage0/00-configure-apt/files/hibbian-apt-config.debbin0 -> 3188 bytes
2 files changed, 6 insertions, 2 deletions
diff --git a/stage0/00-configure-apt/00-run.sh b/stage0/00-configure-apt/00-run.sh
index fb2c4cd..ce0a605 100755
--- a/stage0/00-configure-apt/00-run.sh
+++ b/stage0/00-configure-apt/00-run.sh
@@ -1,12 +1,12 @@
#!/bin/bash -e
true > "${ROOTFS_DIR}/etc/apt/sources.list"
+rm -f "${ROOTFS_DIR}/etc/apt/preferences.d/backports-pref"
install -m 644 files/debian.sources "${ROOTFS_DIR}/etc/apt/sources.list.d/"
install -m 644 files/raspi.sources "${ROOTFS_DIR}/etc/apt/sources.list.d/"
-install -m 644 files/backports-pref "${ROOTFS_DIR}/etc/apt/preferences.d/"
+install -m 644 files/hibbian-apt-config.deb "${ROOTFS_DIR}/tmp/hibbian-apt-config.deb"
sed -i "s/RELEASE/${RELEASE}/g" "${ROOTFS_DIR}/etc/apt/sources.list.d/debian.sources"
sed -i "s/RELEASE/${RELEASE}/g" "${ROOTFS_DIR}/etc/apt/sources.list.d/raspi.sources"
-sed -i "s/RELEASE/${RELEASE}/g" "${ROOTFS_DIR}/etc/apt/preferences.d/backports-pref"
if [ -n "$APT_PROXY" ]; then
install -m 644 files/51cache "${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache"
@@ -30,6 +30,10 @@ on_chroot <<- \EOF
elif [ "$ARCH" = "arm64" ]; then
dpkg --add-architecture armhf
fi
+
+ dpkg -i /tmp/hibbian-apt-config.deb
+ rm -f /tmp/hibbian-apt-config.deb
+
apt-get update
apt-get dist-upgrade -y
EOF
diff --git a/stage0/00-configure-apt/files/hibbian-apt-config.deb b/stage0/00-configure-apt/files/hibbian-apt-config.deb
new file mode 100644
index 0000000..90ed5b5
--- /dev/null
+++ b/stage0/00-configure-apt/files/hibbian-apt-config.deb
Binary files differ