„sysprep-ubuntu.sh“ ändern

This commit is contained in:
2022-03-06 17:51:15 +01:00
parent 562e032a44
commit c4f8a822f2

View File

@ -61,6 +61,7 @@ if hostname | grep localhost; then
fi
test -f /etc/ssh/ssh_host_dsa_key || dpkg-reconfigure openssh-server
systemd-machine-id-setup
exit 0
EOL
@ -94,5 +95,8 @@ sudo cloud-init clean --logs
cat /dev/null > ~/.bash_history && history -c
history -w
# remove machine ID
sudo rm /etc/machine-id
#shutdown
shutdown -h now