From 7a96e24d99882c86f752c5ed4e4a9879e4b35052 Mon Sep 17 00:00:00 2001 From: Aleksandr Mezin Date: Thu, 10 Oct 2024 21:00:59 +0300 Subject: [PATCH] Add Ubuntu 24.10 --- .github/workflows/build.yml | 1 + ubuntu-24.10.pkr.hcl | 55 +++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 ubuntu-24.10.pkr.hcl diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d45afbc..7b83fdd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -57,6 +57,7 @@ jobs: - silverblue40 - ubuntu2204 - ubuntu2404 + - ubuntu2410 runs-on: ubuntu-24.04 steps: diff --git a/ubuntu-24.10.pkr.hcl b/ubuntu-24.10.pkr.hcl new file mode 100644 index 0000000..005ed04 --- /dev/null +++ b/ubuntu-24.10.pkr.hcl @@ -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 = [ + "", + "", + "c", + "set gfxpayload=keep", + "linux /casper/vmlinuz autoinstall console=ttyS0 ", + "cloud-config-url=\"http://{{.HTTPIP}}:{{.HTTPPort}}/ubuntu-autoinstall.yml\" --- ", + "initrd /casper/initrd", + "boot" + ] + 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 + } + } +}