AWS Debian: Only install linux-image-extra on Ubuntu

It isn't available (and hopefully not needed) on Debian
pull/6/head
Justin Santa Barbara 2016-02-13 16:35:05 -05:00
parent f4de3ea676
commit 91eb370931
1 changed files with 3 additions and 1 deletions

View File

@ -175,7 +175,9 @@ if [[ ${docker_storage} == "btrfs" ]]; then
elif [[ ${docker_storage} == "aufs-nolvm" || ${docker_storage} == "aufs" ]]; then
# Install aufs kernel module
# Fix issue #14162 with extra-virtual
apt-get-install linux-image-extra-$(uname -r) linux-image-extra-virtual
if [[ `lsb_release -i -s` == 'Ubuntu' ]]; then
apt-get-install linux-image-extra-$(uname -r) linux-image-extra-virtual
fi
# Install aufs tools
apt-get-install aufs-tools