Update Template for Debian with fixes and improvements
This commit is contained in:
@@ -244,6 +244,10 @@ build {
|
||||
# Generalise the VM so every clone starts with a clean identity
|
||||
provisioner "shell" {
|
||||
inline = [
|
||||
"set -e",
|
||||
# Ensure BD ISOs are mounted (fstab handles this at boot via cdrom-detect/eject=false)
|
||||
"for n in 1 2 3 4 5 6; do mountpoint -q /mnt/bd$n || mount /mnt/bd$n; done",
|
||||
|
||||
# Remove SSH host keys — regenerated on first boot of each clone
|
||||
"sudo rm -f /etc/ssh/ssh_host_*",
|
||||
|
||||
|
||||
Reference in New Issue
Block a user