From 68a01df343ea41f14fafd811cb94165e2a682ca2 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Thu, 22 Aug 2024 10:43:45 +0200 Subject: [PATCH] Enable allow-downgrades to base-files install to allow building images with older version than current Framework stores our base-files in rootfs cache with version that comes from trunk and when we make stable images for current or previous release, build fails with error E: Packages were downgraded and -y was used without --allow-downgrades. --- lib/functions/rootfs/distro-specific.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions/rootfs/distro-specific.sh b/lib/functions/rootfs/distro-specific.sh index c8f1fd1de..1269539f6 100644 --- a/lib/functions/rootfs/distro-specific.sh +++ b/lib/functions/rootfs/distro-specific.sh @@ -37,7 +37,7 @@ function install_distribution_specific() { # install our base-files package (this replaces the original from Debian/Ubuntu) if [[ "${KEEP_ORIGINAL_OS_RELEASE:-"no"}" != "yes" ]]; then - install_artifact_deb_chroot "armbian-base-files" + install_artifact_deb_chroot "armbian-base-files" "--allow-downgrades" fi # Set DNS server if systemd-resolved is in use