Skip to content

Commit

Permalink
Fix2 remove | default(item.boot_command)
Browse files Browse the repository at this point in the history
  • Loading branch information
goffinet committed Oct 18, 2024
1 parent 168ed5f commit d289c63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions roles/build-packer-templates/templates/linux.pkr.hcl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ variable "version" {

source "qemu" "{{ label }}" {
accelerator = "kvm"
boot_command = {% if item.flavor == "ubuntu" and item.version == "20.04" %}{{ debian.ubuntu2004.boot_command | default(item.boot_command) }}
{% elif item.flavor == "ubuntu" and item.version == "22.04" %}{{ debian.ubuntu2204.boot_command | default(item.boot_command) }}
{% elif item.flavor == "ubuntu" and item.version == "24.04" %}{{ debian.ubuntu2404.boot_command | default(item.boot_command) }}
{% elif item.type == 'redhat' %}{{ redhat.boot_command | default(item.boot_command) }}
boot_command = {% if item.flavor == "ubuntu" and item.version == "20.04" %}{{ debian.ubuntu2004.boot_command }}
{% elif item.flavor == "ubuntu" and item.version == "22.04" %}{{ debian.ubuntu2204.boot_command }}
{% elif item.flavor == "ubuntu" and item.version == "24.04" %}{{ debian.ubuntu2404.boot_command }}
{% elif item.type == 'redhat' %}{{ redhat.boot_command }}
{% endif -%}
disk_cache = "none"
disk_compression = true
Expand Down

0 comments on commit d289c63

Please sign in to comment.