diff --git a/stages/02-Packages/00-run-chroot.sh b/stages/02-Packages/00-run-chroot.sh index b8a685a..d9fb029 100644 --- a/stages/02-Packages/00-run-chroot.sh +++ b/stages/02-Packages/00-run-chroot.sh @@ -11,6 +11,15 @@ apt update # rm -Rf /etc/apt/sources.list.d/* # rm -Rf /etc/apt/sources.list # touch /etc/apt/sources.list + PLATFORM_PACKAGES_HOLD="r8125-dkms 8852bu-dkms 8852be-dkms task-rockchip radxa-system-config-rockchip linux-image-rock-5a linux-image-5.10.110-6-rockchip linux-image-5.10.110-11-rockchip" + echo "Holding back platform-specific packages..." + for package in ${PLATFORM_PACKAGES_HOLD}; do + echo "Holding ${package}..." + apt-mark hold ${package} || true + if [ $? -ne 0 ]; then + echo "Failed to hold ${package}!" + fi + done apt update apt install -y swig gcc-arm* sudo sed -i 's/deb \[signed-by=\/usr\/share\/keyrings\/openhd-release-archive-keyring.gpg\] https:\/\/dl.cloudsmith.io\/public\/openhd\/release\/deb\/debian bullseye main/deb \[signed-by=\/usr\/share\/keyrings\/openhd-release-archive-keyring.gpg\] https:\/\/dl.cloudsmith.io\/public\/openhd\/dev-release\/deb\/debian sunxi main/' /etc/apt/sources.list.d/openhd-release.list