From 20eed42704d3940ac02f8fa45b8eca975177a8cc Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Mon, 11 Nov 2019 18:11:12 +0100 Subject: [PATCH] Update --- debian-config-functions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debian-config-functions b/debian-config-functions index ca386b0..9a59b65 100644 --- a/debian-config-functions +++ b/debian-config-functions @@ -466,7 +466,7 @@ function other_kernel_version () TARGET_VERSION_SUB=$(echo $TARGET_VERSION_DTB | cut -f2 -d"=") [[ -n $(apt-cache madison "$TARGET_VERSION_PRE" | grep $TARGET_VERSION_SUB ) ]] && \ - PACKAGE_LIST=$PACKAGE_LIST" $TARGET_VERSION_DTB linux-u-boot-${BOARD}-${UPGRADE_UBOOT} linux-${DISTROID}-root${UPGRADE_ROOT}-${BOARD}" + PACKAGE_LIST=$PACKAGE_LIST" $TARGET_VERSION_DTB linux-u-boot-${BOARD}-${UPGRADE_UBOOT}" echo $PACKAGE_LIST > /tmp/switch_kernel.log 2>&1 debconf-apt-progress -- apt --download-only --allow-downgrades -y --no-install-recommends install $PACKAGE_LIST @@ -480,6 +480,8 @@ function other_kernel_version () find "/boot/" -name "System.map*" -type f -delete; find "/boot/" -name "config*" -type f -delete 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 if [[ $? = 0 ]]; then reboot; fi else