Fix: install ubuntu kernel only if debian kernel install failed
This commit is contained in:
parent
b5def1af8e
commit
2baddde5ba
1 changed files with 4 additions and 3 deletions
|
@ -181,9 +181,10 @@ function install_kernel() {
|
|||
# Instead of retrieving the lastest kernel & headers
|
||||
[ "X$FORCE_KERNEL" == "X" ] && {
|
||||
# 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
|
||||
apt-get -y install linux-raspi linux-headers-raspi linux-image-raspi
|
||||
}
|
||||
} || {
|
||||
# We would like to a fixed version
|
||||
KERN_NAME=raspberrypi-kernel_${FORCE_KERNEL}_${arch_r}.deb
|
||||
|
|
Loading…
Reference in a new issue