Fix: install ubuntu kernel only if debian kernel install failed

This commit is contained in:
turmary 2020-09-27 11:03:03 +01:00
parent b5def1af8e
commit 2baddde5ba

View file

@ -181,9 +181,10 @@ function install_kernel() {
# Instead of retrieving the lastest kernel & headers # Instead of retrieving the lastest kernel & headers
[ "X$FORCE_KERNEL" == "X" ] && { [ "X$FORCE_KERNEL" == "X" ] && {
# Raspbian kernel packages # Raspbian kernel packages
apt-get -y --force-yes install raspberrypi-kernel-headers raspberrypi-kernel apt-get -y --force-yes install raspberrypi-kernel-headers raspberrypi-kernel || {
# Ubuntu kernel packages # Ubuntu kernel packages
apt-get -y install linux-raspi linux-headers-raspi linux-image-raspi apt-get -y install linux-raspi linux-headers-raspi linux-image-raspi
}
} || { } || {
# We would like to a fixed version # We would like to a fixed version
KERN_NAME=raspberrypi-kernel_${FORCE_KERNEL}_${arch_r}.deb KERN_NAME=raspberrypi-kernel_${FORCE_KERNEL}_${arch_r}.deb