From e726efa2a127993d1134a6f8209bc105f906a368 Mon Sep 17 00:00:00 2001 From: oxmc7769 Date: Sat, 7 Mar 2026 01:53:36 -0800 Subject: [PATCH] Fix raspian sources --- stage0/00-configure-apt/00-run.sh | 6 +++++- stage0/00-configure-apt/files/raspbian.sources | 2 +- 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 4cddab8..59ddb54 100755 --- a/stage0/00-configure-apt/00-run.sh +++ b/stage0/00-configure-apt/00-run.sh @@ -3,13 +3,16 @@ # Configure apt sources true > "${ROOTFS_DIR}/etc/apt/sources.list" +# Add APT Sources if [[ "${ARCH}" == "arm64" || "${ARCH}" == "armhf" ]]; then + # On arm64/armhf systems (RpiOS only currently) add rpios sources install -m 644 files/raspbian.sources "${ROOTFS_DIR}/etc/apt/sources.list.d/" install -m 644 files/raspi.sources "${ROOTFS_DIR}/etc/apt/sources.list.d/" sed -i "s/RELEASE/${RELEASE}/g" "${ROOTFS_DIR}/etc/apt/sources.list.d/raspbian.sources" sed -i "s/RELEASE/${RELEASE}/g" "${ROOTFS_DIR}/etc/apt/sources.list.d/raspi.sources" install -m 644 files/raspberrypi-archive-keyring.pgp "${ROOTFS_DIR}/usr/share/keyrings/" -elif [[ "${ARCH}" == "amd64" ]]; then +else + # Add default debian sources until oxmc creates a mirror for debian sources install -m 644 files/debian.sources "${ROOTFS_DIR}/etc/apt/sources.list.d/" sed -i "s/RELEASE/${RELEASE}/g" "${ROOTFS_DIR}/etc/apt/sources.list.d/debian.sources" fi @@ -27,6 +30,7 @@ else rm -f "${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache" fi +# Add temp repo if provided if [ -n "$TEMP_REPO" ]; then install -m 644 /dev/null "${ROOTFS_DIR}/etc/apt/sources.list.d/00-temp.list" echo "$TEMP_REPO" | sed "s/RELEASE/$RELEASE/g" > "${ROOTFS_DIR}/etc/apt/sources.list.d/00-temp.list" diff --git a/stage0/00-configure-apt/files/raspbian.sources b/stage0/00-configure-apt/files/raspbian.sources index d8056b4..5a14699 100644 --- a/stage0/00-configure-apt/files/raspbian.sources +++ b/stage0/00-configure-apt/files/raspbian.sources @@ -3,4 +3,4 @@ URIs: http://raspbian.raspberrypi.com/raspbian/ Architectures: armhf Suites: RELEASE Components: main contrib non-free rpi -Signed-By: /usr/share/keyrings/raspbian-archive-keyring.gpg \ No newline at end of file +Signed-By: /usr/share/keyrings/raspbian-archive-keyring.pgp \ No newline at end of file