Update Template for Debian with fixes and improvements

This commit is contained in:
2026-04-17 07:31:56 +02:00
parent 005213ac7f
commit 3b14aa7c2b
6 changed files with 81 additions and 12 deletions

View File

@@ -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_*",