Skip to content

Commit

Permalink
Add Fedora Silverblue 40
Browse files Browse the repository at this point in the history
  • Loading branch information
amezin committed Apr 27, 2024
1 parent 4b619a3 commit 7e58e5e
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
"fedora39",
"fedora40",
"silverblue39",
"silverblue40",
"opensusetumbleweed",
"alpine319",
"alpine318",
Expand Down
58 changes: 58 additions & 0 deletions silverblue-40.pkr.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
source "qemu" "silverblue40" {
iso_url = "https://download.fedoraproject.org/pub/fedora/linux/releases/40/Silverblue/x86_64/iso/Fedora-Silverblue-ostree-x86_64-40-1.14.iso"
iso_checksum = "file:https://download.fedoraproject.org/pub/fedora/linux/releases/40/Silverblue/x86_64/iso/Fedora-Silverblue-40-1.14-x86_64-CHECKSUM"
vga = "virtio"
cpus = 2
memory = 2048
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 = "silverblue40", version = "40" })
}
ssh_handshake_attempts = 1000
ssh_timeout = "2h"
ssh_username = "vagrant"
ssh_password = "vagrant"
boot_wait = "10s"
boot_keygroup_interval = "1s"
boot_command = [
"c<wait>",
"insmod all_video<enter><wait>",
"set gfxpayload=keep<enter><wait>",
"insmod increment<enter><wait>",
"insmod xfs<enter><wait>",
"insmod diskfilter<enter><wait>",
"insmod mdraid1x<enter><wait>",
"insmod fat<enter><wait>",
"insmod blscfg<enter><wait>",
"insmod gzio<enter><wait>",
"insmod part_gpt<enter><wait>",
"insmod ext2<enter><wait>",
"insmod chain<enter><wait>",
"search --no-floppy --set=root -l 'Fedora-SB-ostree-x86_64-40'<enter><wait>",
"linux /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=Fedora-SB-ostree-x86_64-40 rd.live.check ",
"inst.text inst.ks=http://{{.HTTPIP}}:{{.HTTPPort}}/silverblue.ks<enter><wait>",
"initrd /images/pxeboot/initrd.img<enter><wait10>",
"boot<enter><wait>"
]
}

build {
sources = [
"source.qemu.silverblue40"
]

post-processors {
post-processor "vagrant" {
keep_input_artifact = true
vagrantfile_template = "Vagrantfile"
}

post-processor "vagrant-cloud" {
box_tag = "mezinalexander/silverblue40"
version = var.version
}
}
}

0 comments on commit 7e58e5e

Please sign in to comment.