From b8b855f59bb35a0eae558b103068c0ad188fd6df Mon Sep 17 00:00:00 2001 From: tytan652 Date: Sat, 9 Jan 2021 11:18:28 +0100 Subject: [PATCH] fix: remove "--no-remove" for linux-image install If we let it this way it may prevent linux-image-$arch to be downgraded --- scripts/upgrade | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index cefe056..b6cc37e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -59,7 +59,10 @@ arch=$(ynh_detect_arch) linuximage_version=$(ynh_package_version --package=linux-image-$arch) if [[ $linuximage_version == *"bpo10"* ]] then - ynh_package_install linux-image-$arch/stable + # Downgrading using ynh_package_install (exploded) without "--no-remove" + # It will remove wireguard-ynh-deps and wireguard but they will be reinstalled throught upgrade process + ynh_apt --option Dpkg::Options::=--force-confdef \ + --option Dpkg::Options::=--force-confold install linux-image-$arch/stable fi #=================================================