Skip to content

Commit 0e49993

Browse files
committed
Add headless option and make it default
1 parent 905ace7 commit 0e49993

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
iso_checksum = "file:https://dl.rockylinux.org/pub/rocky/9/images/x86_64/CHECKSUM"
2-
iso_url = "https://dl.rockylinux.org/pub/rocky/9/images/x86_64/Rocky-9-GenericCloud-Base.latest.x86_64.qcow2"
3-
vm_name = "rockylinux-9-x86_64"
1+
efi_boot = true
2+
efi_firmware_code = "/usr/share/OVMF/OVMF_CODE_4M.fd"
3+
efi_firmware_vars = "/usr/share/OVMF/OVMF_VARS_4M.fd"
4+
iso_checksum = "file:https://dl.rockylinux.org/pub/rocky/9/images/x86_64/CHECKSUM"
5+
iso_url = "https://dl.rockylinux.org/pub/rocky/9/images/x86_64/Rocky-9-GenericCloud-Base.latest.x86_64.qcow2"
6+
vm_name = "rockylinux-9-x86_64"

rockylinux/cloud/x86_64/rockylinux.pkr.hcl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ variable "efi_firmware_vars" {
2222
default = null
2323
}
2424

25+
variable "headless" {
26+
type = bool
27+
default = true
28+
}
29+
2530
variable "ssh_username" {
2631
type = string
2732
default = "packer"
@@ -79,6 +84,7 @@ source "qemu" "rockylinux" {
7984
disk_compression = true
8085
disk_image = true
8186
disk_size = "32G"
87+
headless = var.headless
8288
iso_checksum = var.iso_checksum
8389
iso_url = var.iso_url
8490
machine_type = "q35"

0 commit comments

Comments
 (0)