Files
vms/distros/mint/22/finalize.sh
Greg Hellings 8ac704a100 Hopefully fix Mint 22 install problems
Mint 22 install was hanging on Virtualbox because it was not installing
openssh-server at the end of the run. I do not know whether the `||
true` lines fixed this, or if it was the `d-i pkgsel/include` line
getting fixed, but the result is that it now builds and installs for
Virtualbox
2025-08-18 12:35:13 -05:00

26 lines
545 B
Bash

#!/usr/bin/env bash
set -ex
# 5 minute timeout for the package lock to arrive
apt-get -o DPkg::Lock::Timeout=600 autoremove -y
# Configure sshd to be faster
cat << EOF > /etc/ssh/sshd_config.d/00-vagrant_accept_pubkey.conf
UseDNS no
PubkeyAcceptedKeyTypes +ssh-rsa
EOF
apt update
apt upgrade -y
# Clean up after ourselves
apt-get clean
virt="$(systemd-detect-virt)"
if [ "${virt}" == "microsoft" ]; then
apt-get install -y hyperv-daemons
systemctl enable hv-fcopy-daemon
systemctl enable hv-kvp-daemon
systemctl enable hv-vss-daemon
fi