bootstrap: Force apt not to install recommends

This is ending up in weird situations like a server having x11-common
installed.
This commit is contained in:
Evilham 2023-04-05 09:16:29 +02:00
parent 1f2b2f4a2f
commit fb92d9413a
Signed by: evilham
GPG key ID: AE3EE30D970886BF

View file

@ -8,6 +8,13 @@
sed -i'' -E 's/^deb[[:space:]]+cdrom:.*$//g' /etc/apt/sources.list
apt-get update
# Disable apt's install recommends, not having this is making server
# installations end up with things like X11
cat > /etc/apt/apt.conf.d/01norecommend << EOF
APT::Install-Recommends "0";
APT::Install-Suggests "0";
EOF
# Basic system utilities
apt-get install -y vim tmux screen tcpdump nmap cloud-init qemu-guest-agent sudo parted xfsprogs openssh-server