From 0b50a40cf22e9261fe08be25442e4f4146b1a2d1 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Fri, 27 May 2022 01:04:24 -0500 Subject: [PATCH] Add Fedora 36 --- distros/fedora-36-x86_64.pkrvars.hcl | 13 +++++++++++++ http/fedora/36-x86_64.ks | 19 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 distros/fedora-36-x86_64.pkrvars.hcl create mode 100644 http/fedora/36-x86_64.ks diff --git a/distros/fedora-36-x86_64.pkrvars.hcl b/distros/fedora-36-x86_64.pkrvars.hcl new file mode 100644 index 0000000..c68e7df --- /dev/null +++ b/distros/fedora-36-x86_64.pkrvars.hcl @@ -0,0 +1,13 @@ +distro = "fedora" +arch = "x86_64" +version = "36" +iso = { + url = "https://download.fedoraproject.org/pub/fedora/linux/releases/36/Server/x86_64/iso/Fedora-Server-dvd-x86_64-36-1.5.iso" + checksum = "5edaf708a52687b09f9810c2b6d2a3432edac1b18f4d8c908c0da6bde0379148" +} +boot_wait = "20s" +boot_command = [ + "", + "edd=off net.ifnames=0 biosdevnames=0 inst.ks=http://{{.HTTPIP}}:{{.HTTPPort}}/fedora/35-x86_64.ks console=ttyS0" +] +ssh_handshake_attempts = 1000 diff --git a/http/fedora/36-x86_64.ks b/http/fedora/36-x86_64.ks new file mode 100644 index 0000000..ed17021 --- /dev/null +++ b/http/fedora/36-x86_64.ks @@ -0,0 +1,19 @@ +text + +%packages +# There is weirdness with the /etc/resolv.conf in the target system +# that causes some of the imported systems to fail. Hopefully this +# prevents that. +-systemd-resolved +NetworkManager +%end + +%include /tmp/packer_ks/fedora/f35/fedora-cloud-base-vagrant.ks + +%pre --interpreter /bin/bash --log /tmp/greg +cmdline=$(cat /proc/cmdline) +ks=$(printf "${cmdline}" | sed -E -e 's/.*inst\.ks=([^ ]*).*/\1/') +mkdir -p /tmp/packer_ks +cd /tmp/packer_ks +wget -m -nH "$(dirname "${ks}")" +%end