Fix raspian sources
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
Signed-By: /usr/share/keyrings/raspbian-archive-keyring.pgp
|
||||
Reference in New Issue
Block a user