From 0862ddf36d9550ba7ba9604eb0c7ad96beb3ba6a Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Tue, 18 Oct 2022 10:28:24 +0700 Subject: [PATCH] lxc-kali: Reduce diff with Debian These bits were missing for no reason. Signed-off-by: Arnaud Rebillout --- templates/lxc-kali.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/lxc-kali.in b/templates/lxc-kali.in index 3439a58..8ba89e8 100644 --- a/templates/lxc-kali.in +++ b/templates/lxc-kali.in @@ -155,6 +155,12 @@ EOF chroot "$rootfs" update-locale LANG="$LANG" fi + # remove pointless services in a container + chroot "$rootfs" /usr/sbin/update-rc.d -f checkroot.sh disable + chroot "$rootfs" /usr/sbin/update-rc.d -f umountfs disable + chroot "$rootfs" /usr/sbin/update-rc.d -f hwclock.sh disable + chroot "$rootfs" /usr/sbin/update-rc.d -f hwclockfirst.sh disable + # generate new SSH keys if [ -x "$rootfs/var/lib/dpkg/info/openssh-server.postinst" ]; then cat > "$rootfs/usr/sbin/policy-rc.d" << EOF @@ -668,6 +674,7 @@ elif [ "$arch" = "aarch64" ]; then arch="arm64" fi hostarch=$arch +packages= mainonly=1 flushcache=0