Skip to content

Commit

Permalink
Add Ubuntu 24.10
Browse files Browse the repository at this point in the history
  • Loading branch information
amezin committed Oct 10, 2024
1 parent 11d95f1 commit 7a96e24
Show file tree
Hide file tree
Showing 2 changed files with 56 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 @@ -57,6 +57,7 @@ jobs:
- silverblue40
- ubuntu2204
- ubuntu2404
- ubuntu2410

runs-on: ubuntu-24.04
steps:
Expand Down
55 changes: 55 additions & 0 deletions ubuntu-24.10.pkr.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
source "qemu" "ubuntu2410" {
iso_url = "https://releases.ubuntu.com/24.10/ubuntu-24.10-desktop-amd64.iso"
iso_checksum = "file:https://releases.ubuntu.com/24.10/SHA256SUMS"
vga = "virtio"
cpus = 2
memory = 4096
headless = var.headless
shutdown_command = "sudo shutdown -P now"
qmp_enable = true
disk_discard = "unmap"
http_content = {
"/ubuntu-autoinstall.yml" = templatefile("${path.root}/ubuntu-autoinstall.yml", { path = path, hostname = "ubuntu2410" })
}
ssh_handshake_attempts = 1000
ssh_timeout = "2h"
ssh_username = "vagrant"
ssh_password = "vagrant"
boot_wait = "10s"
boot_keygroup_interval = "1s"
boot_command = [
"<tab><wait><tab><wait><tab><wait><tab><wait><tab><wait><tab><wait>",
"<tab><wait><tab><wait><tab><wait><tab><wait><tab><wait><tab><wait>",
"c<wait10>",
"set gfxpayload=keep<enter><wait>",
"linux /casper/vmlinuz autoinstall console=ttyS0 ",
"cloud-config-url=\"http://{{.HTTPIP}}:{{.HTTPPort}}/ubuntu-autoinstall.yml\" --- <enter><wait>",
"initrd /casper/initrd<enter><wait>",
"boot<enter>"
]
qemuargs = [["-serial", "stdio"]]
}

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

provisioner "shell" {
inline = [
"sudo apt-get clean -y",
]
}

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

post-processor "vagrant-registry" {
box_tag = "gnome-shell-box/ubuntu2410"
version = var.version
}
}
}

0 comments on commit 7a96e24

Please sign in to comment.