mirror of
https://github.com/lxc/lxc-templates.git
synced 2025-03-08 00:38:57 +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:
parent
70ae901bdd
commit
0862ddf36d
@ -155,6 +155,12 @@ EOF
|
|||||||
chroot "$rootfs" update-locale LANG="$LANG"
|
chroot "$rootfs" update-locale LANG="$LANG"
|
||||||
fi
|
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
|
# generate new SSH keys
|
||||||
if [ -x "$rootfs/var/lib/dpkg/info/openssh-server.postinst" ]; then
|
if [ -x "$rootfs/var/lib/dpkg/info/openssh-server.postinst" ]; then
|
||||||
cat > "$rootfs/usr/sbin/policy-rc.d" << EOF
|
cat > "$rootfs/usr/sbin/policy-rc.d" << EOF
|
||||||
@ -668,6 +674,7 @@ elif [ "$arch" = "aarch64" ]; then
|
|||||||
arch="arm64"
|
arch="arm64"
|
||||||
fi
|
fi
|
||||||
hostarch=$arch
|
hostarch=$arch
|
||||||
|
packages=
|
||||||
mainonly=1
|
mainonly=1
|
||||||
flushcache=0
|
flushcache=0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user