From d86d62230d9d86f3d8d4c807c6010d54caf866dd Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Tue, 3 May 2022 09:19:18 -0500 Subject: [PATCH] Fedora 34 on QEmu --- .gitmodules | 12 ++++++++++++ distros/fedora-34-x86_64.pkrvars.hcl | 13 +++++++++++++ http/fedora/34-x86_64.ks | 11 +++++++++++ http/fedora/f34 | 1 + http/fedora/f35 | 1 + http/fedora/f36 | 1 + 6 files changed, 39 insertions(+) create mode 100644 .gitmodules create mode 100644 distros/fedora-34-x86_64.pkrvars.hcl create mode 100644 http/fedora/34-x86_64.ks create mode 160000 http/fedora/f34 create mode 160000 http/fedora/f35 create mode 160000 http/fedora/f36 diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..4014b79 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,12 @@ +[submodule "http/fedora/f34"] + path = http/fedora/f34 + url = https://pagure.io/fedora-kickstarts.git + branch = f34 +[submodule "http/fedora/f35"] + path = http/fedora/f35 + url = https://pagure.io/fedora-kickstarts.git + branch = f35 +[submodule "http/fedora/f36"] + path = http/fedora/f36 + url = https://pagure.io/fedora-kickstarts.git + branch = f36 diff --git a/distros/fedora-34-x86_64.pkrvars.hcl b/distros/fedora-34-x86_64.pkrvars.hcl new file mode 100644 index 0000000..6946958 --- /dev/null +++ b/distros/fedora-34-x86_64.pkrvars.hcl @@ -0,0 +1,13 @@ +distro = "fedora" +arch = "x86_64" +version = "34" +iso = { + url = "https://download.fedoraproject.org/pub/fedora/linux/releases/34/Server/x86_64/iso/Fedora-Server-netinst-x86_64-34-1.2.iso" + checksum = "e1a38b9faa62f793ad4561b308c31f32876cfaaee94457a7a9108aaddaeec406" +} +boot_wait = "20s" +boot_command = [ + "", + "net.ifnames=0 biosdevnames=0 inst.ks=http://{{.HTTPIP}}:{{.HTTPPort}}/fedora/34-x86_64.ks console=ttyS0" +] +ssh_handshake_attempts = 1000 diff --git a/http/fedora/34-x86_64.ks b/http/fedora/34-x86_64.ks new file mode 100644 index 0000000..970563f --- /dev/null +++ b/http/fedora/34-x86_64.ks @@ -0,0 +1,11 @@ +text + +%include /tmp/packer_ks/fedora/f34/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 diff --git a/http/fedora/f34 b/http/fedora/f34 new file mode 160000 index 0000000..022f045 --- /dev/null +++ b/http/fedora/f34 @@ -0,0 +1 @@ +Subproject commit 022f04580e1261dd8bfb13c9d9173d65eddd5c45 diff --git a/http/fedora/f35 b/http/fedora/f35 new file mode 160000 index 0000000..3cfe995 --- /dev/null +++ b/http/fedora/f35 @@ -0,0 +1 @@ +Subproject commit 3cfe995016eebde3204dab81b30d9768aab0df17 diff --git a/http/fedora/f36 b/http/fedora/f36 new file mode 160000 index 0000000..a69afdb --- /dev/null +++ b/http/fedora/f36 @@ -0,0 +1 @@ +Subproject commit a69afdb7e04c06cde624a9de2444d755e95ee8b4