From eaba233ca3adf16377a2181c837b2bfb9dac9df1 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Mon, 29 May 2023 21:55:32 +0000 Subject: [PATCH] feat: add apparmor to debian 9+ base container --- distro/debian/debian.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/distro/debian/debian.go b/distro/debian/debian.go index 052c7fc..19bc535 100644 --- a/distro/debian/debian.go +++ b/distro/debian/debian.go @@ -279,6 +279,10 @@ func (d Debian) runs() (commands []string) { "initramfs-tools", d.release.Name()) } + if d.release >= 9 { + pkglist = append(pkglist, "apparmor") + } + if d.release < 9 { pkglist = append(pkglist, "module-init-tools") }