From 6fdfcdb3674a45140a1506d1bde9080e1e56c5ef Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Mon, 10 Aug 2020 13:37:28 +0000 Subject: [PATCH] Small improvements --- debian-config-functions | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/debian-config-functions b/debian-config-functions index 034983d..dfdd0c7 100644 --- a/debian-config-functions +++ b/debian-config-functions @@ -397,7 +397,7 @@ function reload_bsp(){ PACKAGE_PURGE+=" linux-headers*" fi - debconf-apt-progress -- apt-get --download-only --allow-downgrades -y --no-install-recommends install $PACKAGE_INSTALL + debconf-apt-progress -- apt-get -o Dpkg::Options::="--force-confold" --force-yes --download-only --allow-downgrades -y --no-install-recommends install $PACKAGE_INSTALL # if download is ok, remove old packages if [[ $? = 0 ]]; then @@ -505,7 +505,7 @@ function other_kernel_version () PACKAGE_LIST=$PACKAGE_LIST" $TARGET_VERSION_DTB" echo $PACKAGE_LIST > /tmp/switch_kernel.log 2>&1 - debconf-apt-progress -- apt --download-only --allow-downgrades -y --no-install-recommends install $PACKAGE_LIST + debconf-apt-progress -- apt -o Dpkg::Options::="--force-confold" --force-yes --download-only --allow-downgrades -y --no-install-recommends install $PACKAGE_LIST if [[ $? = 0 ]]; then dialog --backtitle "$BACKTITLE" --title "Please wait" --infobox "\nRemoving current kernel ..." 5 36 @@ -518,8 +518,8 @@ function other_kernel_version () find "/boot/" -name "vmlinuz*" -type f -delete; find "/boot/" -name "*nitrd*" -type f -delete apt clean # BSP must be installed separate otherwise it won't work - debconf-apt-progress -- apt -y -qq --allow-downgrades --no-install-recommends install linux-${DISTROID}-root${UPGRADE_ROOT}-${BOARD} - debconf-apt-progress -- apt -y -qq --allow-downgrades --no-install-recommends install $PACKAGE_LIST + debconf-apt-progress -- apt -o Dpkg::Options::="--force-confold" --force-yes -y -qq --allow-downgrades --no-install-recommends install linux-${DISTROID}-root${UPGRADE_ROOT}-${BOARD} + debconf-apt-progress -- apt -o Dpkg::Options::="--force-confold" --force-yes -y -qq --allow-downgrades --no-install-recommends install $PACKAGE_LIST if [[ $? = 0 ]]; then # update boot loader [[ -f /usr/lib/u-boot/platform_install.sh ]] && source /usr/lib/u-boot/platform_install.sh