Merge "Install and configure needed kernel modules"

This commit is contained in:
Jenkins 2016-07-07 08:53:10 +00:00 committed by Gerrit Code Review
commit 887e006c14
1 changed files with 9 additions and 0 deletions

View File

@ -61,6 +61,8 @@ from charmhelpers.contrib.storage.linux.lvm import (
remove_lvm_physical_volume,
)
from charmhelpers.core.decorators import retry_on_exception
from charmhelpers.core.kernel import modprobe
from charmhelpers.fetch import apt_install
BASE_PACKAGES = [
'btrfs-tools',
@ -407,6 +409,13 @@ def configure_lxd_host():
cmd = ['lxc', 'config', 'set',
'core.https_address', '[::]']
check_call(cmd)
if ubuntu_release == 'xenial':
apt_install('linux-image-extra-%s' % os.uname()[2],
fatal=True)
if ubuntu_release >= 'xenial':
modprobe('netlink_diag')
elif ubuntu_release == "vivid":
log('Vivid deployment - loading overlay kernel module', level=INFO)
cmd = ['modprobe', 'overlay']