builder: templates: Add centos-7.8, fedora-32, rhel-7.8.

Ubuntu 20.04 could not be built because their installer has changed in
a way which is not compatible with the current build script.  This
needs some work to fix.
This commit is contained in:
Richard W.M. Jones
2020-06-04 15:22:38 +01:00
parent 987734fcca
commit 6670dc0fbf
8 changed files with 206 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
[centos-7.8]
name=CentOS 7.8
osinfo=centos7.8
arch=x86_64
file=centos-7.8.xz
checksum[sha512]=fe3c35515606d956a7a4e7894e4572d90f733740c7ff8d4e2c8724cd3a8ebe9cba70267da133955d331f671104cbe5c7959f9637cc57a744fec4253ac5d3fe3e
format=raw
size=6442450944
compressed_size=363772768
expand=/dev/sda4
notes=CentOS 7.8
This CentOS image contains only unmodified @Core group packages.
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.

View File

@@ -0,0 +1,29 @@
# Kickstart file for centos-7.8
# 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
# EOF

View File

@@ -0,0 +1,20 @@
# This is the virt-install command which was used to create
# the virt-builder template 'centos-7.8'
# 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-bv7gf3r0' \
'--ram=4096' \
'--arch=x86_64' \
'--cpu=host' \
'--vcpus=4' \
'--os-variant=centos7.0' \
'--initrd-inject=centos-7.8.ks' \
'--extra-args=ks=file:/centos-7.8.ks console=tty0 console=ttyS0,115200 rd_NO_PLYMOUTH' \
'--disk=/home/rjones/d/libguestfs/builder/templates/tmp-bv7gf3r0.img,size=6,format=raw' \
'--location=http://mirror.centos.org/centos-7/7/os/x86_64/' \
'--serial=pty' \
'--nographics'

View File

@@ -0,0 +1,22 @@
[fedora-32]
name=Fedora® 32 Server
osinfo=fedora32
arch=x86_64
file=fedora-32.xz
checksum[sha512]=eef6fe13d32c09e991a5192c746a0104a8cca8945c9e8317256ea2d4d6e39de69c0954cb7fd15698b478694663ddc583472e7febeaa2ae721446dcdefacfd147
format=raw
size=6442450944
compressed_size=474921112
expand=/dev/sda4
notes=Fedora® 32 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.

View File

@@ -0,0 +1,44 @@
# Kickstart file for fedora-32
# 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

View File

@@ -0,0 +1,20 @@
# This is the virt-install command which was used to create
# the virt-builder template 'fedora-32'
# 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-pzrl639w' \
'--ram=4096' \
'--arch=x86_64' \
'--cpu=host' \
'--vcpus=4' \
'--os-variant=fedora26' \
'--initrd-inject=fedora-32.ks' \
'--extra-args=ks=file:/fedora-32.ks console=tty0 console=ttyS0,115200 rd_NO_PLYMOUTH' \
'--disk=/home/rjones/d/libguestfs/builder/templates/tmp-pzrl639w.img,size=6,format=raw' \
'--location=http://mirror.bytemark.co.uk/fedora/linux/releases/32/Server/x86_64/os/' \
'--serial=pty' \
'--nographics'

View File

@@ -0,0 +1,32 @@
# Kickstart file for rhel-7.8
# 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
%end
# EOF

View File

@@ -0,0 +1,20 @@
# This is the virt-install command which was used to create
# the virt-builder template 'rhel-7.8'
# 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-va1dntak' \
'--ram=4096' \
'--arch=x86_64' \
'--cpu=host' \
'--vcpus=4' \
'--os-variant=rhel7.5' \
'--initrd-inject=rhel-7.8.ks' \
'--extra-args=ks=file:/rhel-7.8.ks console=tty0 console=ttyS0,115200 rd_NO_PLYMOUTH' \
'--disk=/home/rjones/d/libguestfs/builder/templates/tmp-va1dntak.img,size=6,format=raw' \
'--location=http://download.devel.redhat.com/released/rhel-6-7-8/rhel-7/RHEL-7/7.8/Server/x86_64/os' \
'--serial=pty' \
'--nographics'