Commit 16c96c97 authored by Igor Pecovnik's avatar Igor Pecovnik
Browse files

Force new boot script install when changing kernel

parent 6a939384
...@@ -1088,7 +1088,7 @@ function jobs () ...@@ -1088,7 +1088,7 @@ function jobs ()
aptitude remove ~nlinux-dtb --quiet=100 -y >> /var/log/upgrade.log aptitude remove ~nlinux-dtb --quiet=100 -y >> /var/log/upgrade.log
aptitude remove ~nlinux-headers --quiet=100 -y >> /var/log/upgrade.log aptitude remove ~nlinux-headers --quiet=100 -y >> /var/log/upgrade.log
fi fi
# install new # install new packages
INSTALL_DTB="" INSTALL_DTB=""
[[ -n $(apt-cache search --names-only "^linux-dtb$TARGET_BRANCH-$TARGET_FAMILY") ]] && \ [[ -n $(apt-cache search --names-only "^linux-dtb$TARGET_BRANCH-$TARGET_FAMILY") ]] && \
INSTALL_DTB="linux-dtb$TARGET_BRANCH-$TARGET_FAMILY" INSTALL_DTB="linux-dtb$TARGET_BRANCH-$TARGET_FAMILY"
...@@ -1096,6 +1096,10 @@ function jobs () ...@@ -1096,6 +1096,10 @@ function jobs ()
linux-headers${TARGET_BRANCH}-${TARGET_FAMILY} linux-u-boot-${BOARD}-${UBOOT_BRANCH} \ linux-headers${TARGET_BRANCH}-${TARGET_FAMILY} linux-u-boot-${BOARD}-${UBOOT_BRANCH} \
linux-$(lsb_release -cs)-root$TARGET_BRANCH-$BOARD $INSTALL_DTB linux-$(lsb_release -cs)-root$TARGET_BRANCH-$BOARD $INSTALL_DTB
# install new boot script
[[ -f /usr/share/armbian/boot.cmd ]] && cp /usr/share/armbian/boot.cmd /boot/boot.cmd && mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr
[[ -f /usr/share/armbian/boot.ini ]] && cp /usr/share/armbian/boot.ini /boot/boot.ini
dialog --title "Kernel switch" --backtitle "$BACKTITLE" --yes-label "Yes" --no-label "Cancel" \ dialog --title "Kernel switch" --backtitle "$BACKTITLE" --yes-label "Yes" --no-label "Cancel" \
--yesno "\nNew kernel was installed. Reboot?" 7 64 --yesno "\nNew kernel was installed. Reboot?" 7 64
exitstatus=$?; exitstatus=$?;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment