Configure LUKS and root password via kernel boot options
This commit is contained in:
parent
9d6ce38c8e
commit
cea8812dbd
4 changed files with 38 additions and 9 deletions
11
debian/13-trixie-luks/debian-trixie.pkr.hcl
vendored
11
debian/13-trixie-luks/debian-trixie.pkr.hcl
vendored
|
|
@ -74,8 +74,13 @@ source "proxmox-iso" "debian-13-trixie-luks" {
|
|||
boot_command = [
|
||||
"<wait3>c<wait3>",
|
||||
"linux /install.amd/vmlinuz auto-install/enable=true priority=critical ",
|
||||
"DEBIAN_FRONTEND=text ",
|
||||
"passwd/root-password='${var.default_root_passphrase}' ",
|
||||
"passwd/root-password-again='${var.default_root_passphrase}' ",
|
||||
"partman-crypto/passphrase='${var.default_luks_passphrase}' ",
|
||||
"partman-crypto/passphrase-again='${var.default_luks_passphrase}' ",
|
||||
"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>",
|
||||
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg noprompt<enter>",
|
||||
"initrd /install.amd/initrd.gz<enter>",
|
||||
"DEBCONF_DEBUG=5<enter>",
|
||||
"boot<enter>"
|
||||
|
|
@ -87,7 +92,7 @@ source "proxmox-iso" "debian-13-trixie-luks" {
|
|||
|
||||
# SSH Settings
|
||||
ssh_username = "root"
|
||||
ssh_password = "packer"
|
||||
ssh_password = "${var.default_root_passphrase}"
|
||||
ssh_timeout = "20m"
|
||||
ssh_pty = true
|
||||
}
|
||||
|
|
@ -104,9 +109,9 @@ build {
|
|||
"apt -y autoremove --purge 2> /dev/null",
|
||||
"apt -y clean 2> /dev/null",
|
||||
"apt -y autoclean 2> /dev/null",
|
||||
"rm -rf /var/cache/apt/archives /var/lib/apt/lists/*",
|
||||
"cloud-init clean",
|
||||
"rm -f /etc/cloud/cloud.cfg.d/subiquity-disable-cloudinit-networking.cfg",
|
||||
"rm -rf /var/cache/apt/archives /var/lib/apt/lists/*",
|
||||
"sync"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue