„sysprep-ubuntu.sh“ ändern
This commit is contained in:
@@ -61,6 +61,7 @@ if hostname | grep localhost; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
test -f /etc/ssh/ssh_host_dsa_key || dpkg-reconfigure openssh-server
|
test -f /etc/ssh/ssh_host_dsa_key || dpkg-reconfigure openssh-server
|
||||||
|
systemd-machine-id-setup
|
||||||
exit 0
|
exit 0
|
||||||
EOL
|
EOL
|
||||||
|
|
||||||
@@ -94,5 +95,8 @@ sudo cloud-init clean --logs
|
|||||||
cat /dev/null > ~/.bash_history && history -c
|
cat /dev/null > ~/.bash_history && history -c
|
||||||
history -w
|
history -w
|
||||||
|
|
||||||
|
# remove machine ID
|
||||||
|
sudo rm /etc/machine-id
|
||||||
|
|
||||||
#shutdown
|
#shutdown
|
||||||
shutdown -h now
|
shutdown -h now
|
||||||
|
|||||||
Reference in New Issue
Block a user