„sysprep-ubuntu.sh“ ändern

This commit is contained in:
2022-03-06 17:53:03 +01:00
parent c4f8a822f2
commit 18e7135d7e

View File

@ -60,8 +60,9 @@ if hostname | grep localhost; then
hostnamectl set-hostname "$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 13 ; echo '')"
fi
test -f /etc/machine-id || systemd-machine-id-setup
test -f /etc/ssh/ssh_host_dsa_key || dpkg-reconfigure openssh-server
systemd-machine-id-setup
exit 0
EOL