Skip to content
Snippets Groups Projects
Commit 22557c63 authored by Bob Mottram's avatar Bob Mottram
Browse files

Don't repeatedly try to install amd64 kernel

parent 0ee00f77
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment