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,8 +203,11 @@ function install_backports_kernel {
architecture_type=$(uname -a)
if [[ "$architecture_type" == *"amd64"* ]]; then
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
}
function turn_off_rsys_logging {