From 5ddef548b05699985f8208986cd11cc786f85a70 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 1 May 2018 17:15:01 +0100 Subject: [PATCH] builder: templates: Add Fedora 28 x86_64 and i686 templates. --- .../templates/fedora-28-i686.index-fragment | 22 ++++++ builder/templates/fedora-28-i686.ks | 33 +++++++++ .../templates/fedora-28-i686.virt-install-cmd | 19 +++++ builder/templates/fedora-28.index-fragment | 22 ++++++ builder/templates/fedora-28.ks | 43 ++++++++++++ builder/templates/fedora-28.virt-install-cmd | 19 +++++ website/download/builder/index | 44 ++++++++++++ website/download/builder/index.asc | 70 +++++++++++++++---- 8 files changed, 259 insertions(+), 13 deletions(-) create mode 100644 builder/templates/fedora-28-i686.index-fragment create mode 100644 builder/templates/fedora-28-i686.ks create mode 100644 builder/templates/fedora-28-i686.virt-install-cmd create mode 100644 builder/templates/fedora-28.index-fragment create mode 100644 builder/templates/fedora-28.ks create mode 100644 builder/templates/fedora-28.virt-install-cmd diff --git a/builder/templates/fedora-28-i686.index-fragment b/builder/templates/fedora-28-i686.index-fragment new file mode 100644 index 000000000..eaf16c35b --- /dev/null +++ b/builder/templates/fedora-28-i686.index-fragment @@ -0,0 +1,22 @@ +[fedora-28] +name=Fedora® 28 Server (i686) +osinfo=fedora28 +arch=i686 +file=fedora-28-i686.xz +checksum[sha512]=6475d5bd0988d2008f883c963d6b55526cc00cc188c4946a130cfc812d24c2cb3dd7bb1b43ba93e389279c5da42236eee1a6e25f4d08cd421e77bba50f015f72 +format=raw +size=6442450944 +compressed_size=400219028 +expand=/dev/sda4 +notes=Fedora® 28 Server (i686) + + This Fedora image contains only unmodified @Core group packages. + + Fedora and the Infinity design logo are trademarks of Red Hat, Inc. + Source and further information is available from http://fedoraproject.org/ + + This template was generated by a script in the libguestfs source tree: + builder/templates/make-template.ml + Associated files used to prepare this template can be found in the + same directory. + diff --git a/builder/templates/fedora-28-i686.ks b/builder/templates/fedora-28-i686.ks new file mode 100644 index 000000000..3dc537ed9 --- /dev/null +++ b/builder/templates/fedora-28-i686.ks @@ -0,0 +1,33 @@ +# Kickstart file for fedora-28-i686 +# Generated by libguestfs.git/builder/templates/make-template.ml + +install +text +reboot +lang en_US.UTF-8 +keyboard us +network --bootproto dhcp +rootpw builder +firewall --enabled --ssh +timezone --utc America/New_York +selinux --enforcing + +bootloader --location=mbr --append="console=tty0 console=ttyS0,115200 rd_NO_PLYMOUTH" + +zerombr +clearpart --all --initlabel --disklabel=gpt +autopart --type=plain + +# Halt the system once configuration has finished. +poweroff + +%packages +@core +%end + +%post +# Ensure the installation is up-to-date. +dnf -y --best upgrade +%end + +# EOF diff --git a/builder/templates/fedora-28-i686.virt-install-cmd b/builder/templates/fedora-28-i686.virt-install-cmd new file mode 100644 index 000000000..5cbdc6c17 --- /dev/null +++ b/builder/templates/fedora-28-i686.virt-install-cmd @@ -0,0 +1,19 @@ +# This is the virt-install command which was used to create +# the virt-builder template 'fedora-28-i686' +# NB: This file is generated for documentation purposes ONLY! +# This script was never run, and is not intended to be run. + +'virt-install' \ + '--transient' \ + '--name=tmp-5vmjtqua' \ + '--ram=2048' \ + '--arch=i686' \ + '--vcpus=1' \ + '--os-variant=fedora23' \ + '--initrd-inject=fedora-28-i686.ks' \ + '--extra-args=ks=file:/fedora-28-i686.ks proxy=http://cache.home.annexia.org:3128 console=tty0 console=ttyS0,115200 rd_NO_PLYMOUTH' \ + '--disk=/home/rjones/d/libguestfs/builder/templates/tmp-5vmjtqua.img,size=6,format=raw' \ + '--location=https://dl.fedoraproject.org/pub/fedora-secondary/releases/28/Server/i386/os/' \ + '--serial=pty' \ + '--nographics' + diff --git a/builder/templates/fedora-28.index-fragment b/builder/templates/fedora-28.index-fragment new file mode 100644 index 000000000..f193869d5 --- /dev/null +++ b/builder/templates/fedora-28.index-fragment @@ -0,0 +1,22 @@ +[fedora-28] +name=Fedora® 28 Server +osinfo=fedora28 +arch=x86_64 +file=fedora-28.xz +checksum[sha512]=13e102cb4378f1a4d83383e0310ad7366063388ad8bf1068e91e106d2f818c8df4dc620fbdd69b733ed0004bf1f8f5cbea2d8fbfe65d20c7c577c99110278262 +format=raw +size=6442450944 +compressed_size=418347084 +expand=/dev/sda4 +notes=Fedora® 28 Server + + This Fedora image contains only unmodified @Core group packages. + + Fedora and the Infinity design logo are trademarks of Red Hat, Inc. + Source and further information is available from http://fedoraproject.org/ + + This template was generated by a script in the libguestfs source tree: + builder/templates/make-template.ml + Associated files used to prepare this template can be found in the + same directory. + diff --git a/builder/templates/fedora-28.ks b/builder/templates/fedora-28.ks new file mode 100644 index 000000000..8afa52414 --- /dev/null +++ b/builder/templates/fedora-28.ks @@ -0,0 +1,43 @@ +# Kickstart file for fedora-28 +# Generated by libguestfs.git/builder/templates/make-template.ml + +install +text +reboot +lang en_US.UTF-8 +keyboard us +network --bootproto dhcp +rootpw builder +firewall --enabled --ssh +timezone --utc America/New_York +selinux --enforcing + +bootloader --location=mbr --append="console=tty0 console=ttyS0,115200 rd_NO_PLYMOUTH" + +zerombr +clearpart --all --initlabel --disklabel=gpt +autopart --type=plain + +# Halt the system once configuration has finished. +poweroff + +%packages +@core +%end + +%post +# Ensure the installation is up-to-date. +dnf -y --best upgrade +# Enable Xen domU support. +pushd /etc/dracut.conf.d +echo 'add_drivers+=" xen:vbd xen:vif "' > virt-builder-xen-drivers.conf +popd +# To make dracut config changes permanent, we need to rerun dracut. +# Rerun dracut for the installed kernel (not the running kernel). +# See commit 0fa52e4e45d80874bc5ea5f112f74be1d3f3472f and +# https://www.redhat.com/archives/libguestfs/2014-June/thread.html#00045 +KERNEL_VERSION="$(rpm -q kernel --qf '%{version}-%{release}.%{arch}\n' | sort -V | tail -1)" +dracut -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION +%end + +# EOF diff --git a/builder/templates/fedora-28.virt-install-cmd b/builder/templates/fedora-28.virt-install-cmd new file mode 100644 index 000000000..99b8d4f3b --- /dev/null +++ b/builder/templates/fedora-28.virt-install-cmd @@ -0,0 +1,19 @@ +# This is the virt-install command which was used to create +# the virt-builder template 'fedora-28' +# NB: This file is generated for documentation purposes ONLY! +# This script was never run, and is not intended to be run. + +'virt-install' \ + '--transient' \ + '--name=tmp-kg7tbfnd' \ + '--ram=2048' \ + '--cpu=host' \ + '--vcpus=4' \ + '--os-variant=fedora23' \ + '--initrd-inject=fedora-28.ks' \ + '--extra-args=ks=file:/fedora-28.ks proxy=http://cache.home.annexia.org:3128 console=tty0 console=ttyS0,115200 rd_NO_PLYMOUTH' \ + '--disk=/home/rjones/d/libguestfs/builder/templates/tmp-kg7tbfnd.img,size=6,format=raw' \ + '--location=http://mirror.bytemark.co.uk/fedora/linux/releases/28/Server/x86_64/os/' \ + '--serial=pty' \ + '--nographics' + diff --git a/website/download/builder/index b/website/download/builder/index index ee8aabef1..d920489d8 100644 --- a/website/download/builder/index +++ b/website/download/builder/index @@ -1236,6 +1236,50 @@ notes=Fedora® 27 Server Associated files used to prepare this template can be found in the same directory. +[fedora-28] +name=Fedora® 28 Server (i686) +osinfo=fedora28 +arch=i686 +file=fedora-28-i686.xz +checksum[sha512]=6475d5bd0988d2008f883c963d6b55526cc00cc188c4946a130cfc812d24c2cb3dd7bb1b43ba93e389279c5da42236eee1a6e25f4d08cd421e77bba50f015f72 +format=raw +size=6442450944 +compressed_size=400219028 +expand=/dev/sda4 +notes=Fedora® 28 Server (i686) + + This Fedora image contains only unmodified @Core group packages. + + Fedora and the Infinity design logo are trademarks of Red Hat, Inc. + Source and further information is available from http://fedoraproject.org/ + + This template was generated by a script in the libguestfs source tree: + builder/templates/make-template.ml + Associated files used to prepare this template can be found in the + same directory. + +[fedora-28] +name=Fedora® 28 Server +osinfo=fedora28 +arch=x86_64 +file=fedora-28.xz +checksum[sha512]=13e102cb4378f1a4d83383e0310ad7366063388ad8bf1068e91e106d2f818c8df4dc620fbdd69b733ed0004bf1f8f5cbea2d8fbfe65d20c7c577c99110278262 +format=raw +size=6442450944 +compressed_size=418347084 +expand=/dev/sda4 +notes=Fedora® 28 Server + + This Fedora image contains only unmodified @Core group packages. + + Fedora and the Infinity design logo are trademarks of Red Hat, Inc. + Source and further information is available from http://fedoraproject.org/ + + This template was generated by a script in the libguestfs source tree: + builder/templates/make-template.ml + Associated files used to prepare this template can be found in the + same directory. + [freebsd-11.1] name=FreeBSD 11.1 osinfo=freebsd11.1 diff --git a/website/download/builder/index.asc b/website/download/builder/index.asc index 1d9927ae1..56cad3d24 100644 --- a/website/download/builder/index.asc +++ b/website/download/builder/index.asc @@ -1239,6 +1239,50 @@ notes=Fedora® 27 Server Associated files used to prepare this template can be found in the same directory. +[fedora-28] +name=Fedora® 28 Server (i686) +osinfo=fedora28 +arch=i686 +file=fedora-28-i686.xz +checksum[sha512]=6475d5bd0988d2008f883c963d6b55526cc00cc188c4946a130cfc812d24c2cb3dd7bb1b43ba93e389279c5da42236eee1a6e25f4d08cd421e77bba50f015f72 +format=raw +size=6442450944 +compressed_size=400219028 +expand=/dev/sda4 +notes=Fedora® 28 Server (i686) + + This Fedora image contains only unmodified @Core group packages. + + Fedora and the Infinity design logo are trademarks of Red Hat, Inc. + Source and further information is available from http://fedoraproject.org/ + + This template was generated by a script in the libguestfs source tree: + builder/templates/make-template.ml + Associated files used to prepare this template can be found in the + same directory. + +[fedora-28] +name=Fedora® 28 Server +osinfo=fedora28 +arch=x86_64 +file=fedora-28.xz +checksum[sha512]=13e102cb4378f1a4d83383e0310ad7366063388ad8bf1068e91e106d2f818c8df4dc620fbdd69b733ed0004bf1f8f5cbea2d8fbfe65d20c7c577c99110278262 +format=raw +size=6442450944 +compressed_size=418347084 +expand=/dev/sda4 +notes=Fedora® 28 Server + + This Fedora image contains only unmodified @Core group packages. + + Fedora and the Infinity design logo are trademarks of Red Hat, Inc. + Source and further information is available from http://fedoraproject.org/ + + This template was generated by a script in the libguestfs source tree: + builder/templates/make-template.ml + Associated files used to prepare this template can be found in the + same directory. + [freebsd-11.1] name=FreeBSD 11.1 osinfo=freebsd11.1 @@ -1432,17 +1476,17 @@ not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