Don't repeatedly try to install amd64 kernel

This commit is contained in:
Bob Mottram 2017-08-07 13:16:47 +01:00
parent 0ee00f775c
commit 22557c6359
1 changed files with 4 additions and 1 deletions

View File

@ -203,7 +203,10 @@ function install_backports_kernel {
architecture_type=$(uname -a)
if [[ "$architecture_type" == *"amd64"* ]]; then
apt-get -yq install linux-image-amd64
package_installed=$(dpkg-query -W -f='${Package}\n' linux-image-amd64 2>/dev/null)
if [ ! $package_installed ]; then
apt-get -yq install linux-image-amd64
fi
fi
}