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
|
# 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
|
||||||
|
|
Loading…
Reference in a new issue