builder: Fedora 27 (x86_64) image.

Note this uses GPT, see commit a06e50e263.
This commit is contained in:
Richard W.M. Jones
2017-11-14 14:51:53 +00:00
parent a52b7bdccc
commit 52f8e2b830
5 changed files with 141 additions and 13 deletions

View File

@@ -0,0 +1,22 @@
[fedora-27]
name=Fedora® 27 Server
osinfo=fedora27
arch=x86_64
file=fedora-27.xz
checksum[sha512]=01bed9d8d0f66053a0a91bc41e737016db477a06e264e691a74ab88c8982c034606af3cca50e86e310418ff6edb4296c637dca2926d51bc620da6502e01d9da4
format=raw
size=6442450944
compressed_size=364702928
expand=/dev/sda4
notes=Fedora® 27 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,43 @@
# Kickstart file for fedora-27
# 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,19 @@
# This is the virt-install command which was used to create
# the virt-builder template 'fedora-27'
# 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-95vf03b0' \
'--ram=2048' \
'--cpu=host' \
'--vcpus=4' \
'--os-variant=fedora23' \
'--initrd-inject=fedora-27.ks' \
'--extra-args=ks=file:/fedora-27.ks proxy=http://cache.home.annexia.org:3128 console=tty0 console=ttyS0,115200 rd_NO_PLYMOUTH' \
'--disk=/home/rjones/d/libguestfs/builder/templates/tmp-95vf03b0.img,size=6,format=raw' \
'--location=http://mirror.bytemark.co.uk/fedora/linux/releases/27/Server/x86_64/os/' \
'--serial=pty' \
'--nographics'

View File

@@ -1101,6 +1101,28 @@ notes=Fedora® 26 Server
Associated files used to prepare this template can be found in the
same directory.
[fedora-27]
name=Fedora® 27 Server
osinfo=fedora27
arch=x86_64
file=fedora-27.xz
checksum[sha512]=01bed9d8d0f66053a0a91bc41e737016db477a06e264e691a74ab88c8982c034606af3cca50e86e310418ff6edb4296c637dca2926d51bc620da6502e01d9da4
format=raw
size=6442450944
compressed_size=364702928
expand=/dev/sda4
notes=Fedora® 27 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

View File

@@ -1104,6 +1104,28 @@ notes=Fedora® 26 Server
Associated files used to prepare this template can be found in the
same directory.
[fedora-27]
name=Fedora® 27 Server
osinfo=fedora27
arch=x86_64
file=fedora-27.xz
checksum[sha512]=01bed9d8d0f66053a0a91bc41e737016db477a06e264e691a74ab88c8982c034606af3cca50e86e310418ff6edb4296c637dca2926d51bc620da6502e01d9da4
format=raw
size=6442450944
compressed_size=364702928
expand=/dev/sda4
notes=Fedora® 27 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
@@ -1267,17 +1289,17 @@ notes=Ubuntu 16.04 (Xenial).
-----BEGIN PGP SIGNATURE-----
iQIcBAEBAgAGBQJZ5ymmAAoJEJFzj3Pht2igUToQAK67u5ra3GtDmN0NXGSdZCJj
Wkdk53onbb+SrJgGvEOPNnzw29amC1a0r9TZmDQoFRE8AUFiAq+TNPJqyORPnRWS
5DX8HvHWJX8SJpHaewGnBOasEkGag7xxDRb3p2oZiGkRzmVheh9erCj+NkGz5oF5
qtyFW2QnUbe7ga8CA5tZARqShT5lhjmJrlUFwcR1HvKxeDb9B/BsIYVYBaS1ldhM
a5xOJSAByf30EPPTuz/AvBJmmUfQ5X43tRgaIlkTqld7QRfUd0f5pPqn+ipfkNFs
0L0BJ6pIqvo50+xw0DZ/omtep5GRkCOz0it1naTJdaZKVuZAGK4nKAq1Cki1zZOU
wBFRuusVJq1TDH1VZ8migZcygzdo2ulfUvwtunTAghYT2Tn8esjE+V21Ezx8uov2
AE2MErbAILCGkohAEDOb9cHdZqeT8Ul0tD4AwgaoAv5F4NXhtyUqygS0qVFsBmD5
6oZ8nNOmkGz3QFmsj9lwlmPndHu793ZIP5wIMVhLEq9TvElyjZbUWf+ucW+4moKp
7CgV1/BmEHUqRrqUS33OjP+d20b1Pj4jjiSg9XXYPOamBJfB8DhRH+dJxDrmASrU
b5W4RtznoPppGVQ9931WXKtB24lcM0KSboWQvq31rZa1589Xw/sCrp0Ic0Xu6nqg
ssBP6aISIXbkdl8TdsdC
=KfNx
iQIcBAEBAgAGBQJaCwQoAAoJEJFzj3Pht2igCA4QAKMUx7n4PwyMqjWShHZV8TKW
vpegUWZfgOJ0qfigEw9UFFRtYlM68+GbTHAJnfyh/gr513K77nw2I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