-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsilverblue-41.pkr.hcl
53 lines (50 loc) · 1.76 KB
/
silverblue-41.pkr.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
source "qemu" "silverblue41" {
iso_url = "https://download.fedoraproject.org/pub/fedora/linux/releases/41/Silverblue/x86_64/iso/Fedora-Silverblue-ostree-x86_64-41-1.4.iso"
iso_checksum = "file:https://download.fedoraproject.org/pub/fedora/linux/releases/41/Silverblue/x86_64/iso/Fedora-Silverblue-41-1.4-x86_64-CHECKSUM"
vga = "virtio"
cpus = 2
memory = 4096
headless = var.headless
shutdown_command = "sudo shutdown -P now"
qmp_enable = true
disk_discard = "unmap"
http_content = {
"/silverblue.ks" = templatefile("${path.root}/silverblue.ks", { path = path, hostname = "silverblue41", version = "41" })
}
ssh_timeout = "1h"
ssh_username = "vagrant"
ssh_password = "vagrant"
boot_command = [
"c<wait10>",
"set gfxpayload=keep<enter><wait>",
"linux /images/pxeboot/vmlinuz console=ttyS0 inst.notmux inst.cmdline ",
"inst.stage2=hd:LABEL=Fedora-SB-ostree-x86_64-41 ",
"inst.ks=http://{{.HTTPIP}}:{{.HTTPPort}}/silverblue.ks<enter><wait>",
"initrd /images/pxeboot/initrd.img<enter><wait10>",
"boot<enter>"
]
efi_firmware_code = "${path.root}/ovmf/OVMF_CODE.4m.fd"
efi_firmware_vars = "${path.root}/ovmf/OVMF_VARS.4m.fd"
qemuargs = [["-serial", "stdio"]]
machine_type = var.machine_type
}
build {
sources = [
"source.qemu.silverblue41"
]
post-processors {
post-processor "vagrant" {
vagrantfile_template = "Vagrantfile"
include = [
"${path.root}/ovmf/OVMF_CODE.4m.fd",
"${path.root}/output-${source.name}/efivars.fd",
"${path.root}/ovmf/edk2.License.txt",
"${path.root}/ovmf/OvmfPkg.License.txt",
]
}
post-processor "vagrant-registry" {
box_tag = "gnome-shell-box/silverblue41"
version = local.version
}
}
}