Add fully automated Debian 13 LUKS encrypted Template build

This commit is contained in:
Philip Henning 2026-02-05 15:33:14 +01:00
parent 40a0623ad0
commit f76fd4a95a
5 changed files with 215 additions and 3 deletions

View file

@ -74,6 +74,7 @@ source "proxmox-iso" "debian-13-trixie" {
boot_command = [
"<wait3>c<wait3>",
"linux /install.amd/vmlinuz auto-install/enable=true priority=critical ",
"INSTALL_FINISHED_INFORM_URL='http://{{ .HTTPIP }}:${var.install_finished_inform_port}/install_finished' ",
"DEBIAN_FRONTEND=text preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg noprompt<enter>",
"initrd /install.amd/initrd.gz<enter>",
"DEBCONF_DEBUG=5<enter>",

View file

@ -153,7 +153,12 @@ d-i grub-installer/bootdev string default
# 2) Enable root ssh login (same intent as your original)
d-i preseed/late_command string \
lvremove -f /dev/vg0/reserved || true; \
in-target sed -i 's/^#PermitRootLogin .*/PermitRootLogin yes/' /etc/ssh/sshd_config || true
in-target sed -i 's/^#PermitRootLogin .*/PermitRootLogin yes/' /etc/ssh/sshd_config || true; \
in-target curl -X POST "$INSTALL_FINISHED_INFORM_URL"
# Eject the installation media before rebooting
d-i cdrom-detect/eject boolean true
d-i cdrom-detect/eject seen true
### Finish
d-i finish-install/reboot_in_progress note

View file

@ -68,6 +68,12 @@ variable "proxmox_node" {
description = "The Proxmox node to use for building the image"
}
variable "install_finished_inform_port" {
type = string
default = "10000"
description = "The server port to inform when installation is finished"
}
# local values