add serial console to template
This commit is contained in:
@@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user