From c37f8f1d67c17fb196413a73305fb6b4a3046e56 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Tue, 3 May 2022 13:09:07 -0500 Subject: [PATCH] Fedora 35 on QEmu --- distros/fedora-35-x86_64.pkrvars.hcl | 13 +++++++++++++ http/fedora/35-x86_64.ks | 19 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 distros/fedora-35-x86_64.pkrvars.hcl create mode 100644 http/fedora/35-x86_64.ks diff --git a/distros/fedora-35-x86_64.pkrvars.hcl b/distros/fedora-35-x86_64.pkrvars.hcl new file mode 100644 index 0000000..0c5fe7e --- /dev/null +++ b/distros/fedora-35-x86_64.pkrvars.hcl @@ -0,0 +1,13 @@ +distro = "fedora" +arch = "x86_64" +version = "35" +iso = { + url = "https://download.fedoraproject.org/pub/fedora/linux/releases/35/Server/x86_64/iso/Fedora-Server-dvd-x86_64-35-1.2.iso" + checksum = "3fe521d6c7b12c167f3ac4adab14c1f344dd72136ba577aa2bcc4a67bcce2bc6" +} +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/35-x86_64.ks b/http/fedora/35-x86_64.ks new file mode 100644 index 0000000..ed17021 --- /dev/null +++ b/http/fedora/35-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