add serial console to template

This commit is contained in:
2023-10-23 12:56:10 +02:00
parent c2cd9fb877
commit 1e4eac0602
3 changed files with 8 additions and 1 deletions

View File

@@ -11,4 +11,11 @@ build {
destination = "/etc/cloud/cloud.cfg.d/99-pve.cfg"
source = "cloudinit/99-pve.cfg"
}
provisioner "shell" {
inline = [
"sed -i -e 's/GRUB_CMDLINE_LINUX=\".*\"/GRUB_CMDLINE_LINUX=\"quiet console=tty0 console=ttyS0,115200\"/' /etc/default/grub",
"update-grub",
"systemctl enable serial-getty@ttyS0.service"
]
}
}