broke arm64 builds somehow?
This commit is contained in:
@@ -8,6 +8,7 @@ if [[ "${ARCH}" == "arm64" || "${ARCH}" == "armhf" ]]; then
|
||||
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
|
||||
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"
|
||||
@@ -16,6 +17,7 @@ fi
|
||||
# Configure oxmc apt sources
|
||||
install -m 644 files/oxmc.sources "${ROOTFS_DIR}/etc/apt/sources.list.d/"
|
||||
sed -i "s/RELEASE/${RELEASE}/g" "${ROOTFS_DIR}/etc/apt/sources.list.d/oxmc.sources"
|
||||
install -m 644 files/oxmc.pgp "${ROOTFS_DIR}/usr/share/keyrings/"
|
||||
|
||||
# Configure apt proxy
|
||||
if [ -n "$APT_PROXY" ]; then
|
||||
@@ -36,14 +38,6 @@ fi
|
||||
install -m 644 files/apt-chillcraftos-prefs "${ROOTFS_DIR}/etc/apt/preferences.d/"
|
||||
sed -i "s/RELEASE/${RELEASE}/g" "${ROOTFS_DIR}/etc/apt/preferences.d/apt-chillcraftos-prefs"
|
||||
|
||||
# Add raspberrypi-archive-keyring to apt if armhf or arm64
|
||||
if [[ "${ARCH}" == "arm64" || "${ARCH}" == "armhf" ]]; then
|
||||
install -m 644 files/raspberrypi-archive-keyring.pgp "${ROOTFS_DIR}/usr/share/keyrings/"
|
||||
fi
|
||||
|
||||
# Add oxmc-archive-keyring to apt
|
||||
install -m 644 files/oxmc.pgp "${ROOTFS_DIR}/usr/share/keyrings/"
|
||||
|
||||
# Add armhf and arm64 architectures, update and upgrade and cache policy
|
||||
on_chroot <<- \EOF
|
||||
SYSTEM_ARCH="$(dpkg --print-architecture)"
|
||||
|
||||
Reference in New Issue
Block a user