1
0
mirror of https://github.com/lxc/lxc-templates.git synced 2024-12-22 06:20:13 +00:00

lxc-kali: Reduce diff with Debian

These bits were missing for no reason.

Signed-off-by: Arnaud Rebillout <arnaudr@kali.org>
This commit is contained in:
Arnaud Rebillout 2022-10-18 10:28:24 +07:00
parent 70ae901bdd
commit 0862ddf36d

View File

@ -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