From bdc0b49ce38d012be3328ddc7c59a7e496b098b4 Mon Sep 17 00:00:00 2001 From: Roman Dobosz Date: Thu, 23 Feb 2023 17:23:05 +0100 Subject: [PATCH] Install apparmor tools also for Ubuntu Focal. k8s gate is still on focal, so patch which unblock the apparmor for jammy does not affect it. Here is the fix for focal as well. Change-Id: I2a9bc69a59e7d6d21d61e79115d5a3c726c73ab0 --- devstack/lib/docker | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/devstack/lib/docker b/devstack/lib/docker index ba3a0e5..08e3746 100644 --- a/devstack/lib/docker +++ b/devstack/lib/docker @@ -62,9 +62,7 @@ function install_docker { arch=$(dpkg --print-architecture) fi if is_ubuntu; then - if [[ ${dist_version} == 'jammy' ]]; then - apt_get install apparmor - fi + apt_get install apparmor if [[ ${dist_version} == 'trusty' ]]; then if uname -r | grep -q -- '-generic' && dpkg -l 'linux-image-*-generic' | grep -qE '^ii|^hi' 2>/dev/null; then apt_get install linux-image-extra-$(uname -r) linux-image-extra-virtual