From bbf4aeaf2bece33030907929ea358d4c01993cab Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 18 Sep 2019 10:51:43 +0100 Subject: [PATCH] builder: templates: Add centos-7.7. --- builder/templates/centos-7.7.index-fragment | 19 +++++++++++++ builder/templates/centos-7.7.ks | 28 +++++++++++++++++++ builder/templates/centos-7.7.virt-install-cmd | 20 +++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 builder/templates/centos-7.7.index-fragment create mode 100644 builder/templates/centos-7.7.ks create mode 100644 builder/templates/centos-7.7.virt-install-cmd diff --git a/builder/templates/centos-7.7.index-fragment b/builder/templates/centos-7.7.index-fragment new file mode 100644 index 000000000..72a32eb01 --- /dev/null +++ b/builder/templates/centos-7.7.index-fragment @@ -0,0 +1,19 @@ +[centos-7.7] +name=CentOS 7.7 +osinfo=centos7.7 +arch=x86_64 +file=centos-7.7.xz +checksum[sha512]=0cc4d5a5ddff9d6dc11ddbf0161368630f4517cc4a12ac449619a0cdb7825b0b16973226617574ea8dc60338094f94db6a34d7fb7ee2906f0ef0b05215e8912d +format=raw +size=6442450944 +compressed_size=353990508 +expand=/dev/sda4 +notes=CentOS 7.7 + + 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. + diff --git a/builder/templates/centos-7.7.ks b/builder/templates/centos-7.7.ks new file mode 100644 index 000000000..6c50e48ba --- /dev/null +++ b/builder/templates/centos-7.7.ks @@ -0,0 +1,28 @@ +# Kickstart file for centos-7.7 +# 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 diff --git a/builder/templates/centos-7.7.virt-install-cmd b/builder/templates/centos-7.7.virt-install-cmd new file mode 100644 index 000000000..d613b2ce7 --- /dev/null +++ b/builder/templates/centos-7.7.virt-install-cmd @@ -0,0 +1,20 @@ +# This is the virt-install command which was used to create +# the virt-builder template 'centos-7.7' +# 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-sbpyaejm' \ + '--ram=2048' \ + '--arch=x86_64' \ + '--cpu=host' \ + '--vcpus=4' \ + '--os-variant=centos7.0' \ + '--initrd-inject=centos-7.7.ks' \ + '--extra-args=ks=file:/centos-7.7.ks console=tty0 console=ttyS0,115200 rd_NO_PLYMOUTH' \ + '--disk=/home/rjones/d/libguestfs/builder/templates/tmp-sbpyaejm.img,size=6,format=raw' \ + '--location=http://mirror.centos.org/centos-7/7/os/x86_64/' \ + '--serial=pty' \ + '--nographics' +