„sysprep-ubuntu.sh“ ändern
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user