builder: templates: Add Ubuntu 18.04.

This commit is contained in:
Richard W.M. Jones
2018-04-27 14:53:40 +01:00
parent e5946165c8
commit a75c13d301
5 changed files with 126 additions and 14 deletions

View File

@@ -335,6 +335,7 @@ and os_of_string os ver =
| "ubuntu", "12.04" -> Ubuntu (ver, "precise")
| "ubuntu", "14.04" -> Ubuntu (ver, "trusty")
| "ubuntu", "16.04" -> Ubuntu (ver, "xenial")
| "ubuntu", "18.04" -> Ubuntu (ver, "bionic")
| "fedora", ver -> Fedora (int_of_string ver)
| "freebsd", ver -> let maj, min = parse_major_minor ver in FreeBSD (maj, min)
| _ ->
@@ -882,7 +883,9 @@ and os_variant_of_os ?(for_fedora = false) os arch =
| Debian (ver, _), _ when ver <= 8 -> sprintf "debian%d" ver
| Debian _, _ -> "debian8" (* max version known in Fedora 26 *)
| Ubuntu (ver, _), _ -> sprintf "ubuntu%s" ver
| Ubuntu (ver, _), _ when ver < "18.04" -> sprintf "ubuntu%s" ver
| Ubuntu ("18.04", _), _ -> "ubuntu17.04"
| Ubuntu _, _ -> assert false
| FreeBSD (major, minor), _ -> sprintf "freebsd%d.%d" major minor
)

View File

@@ -0,0 +1,30 @@
[ubuntu-18.04]
name=Ubuntu 18.04 (bionic)
osinfo=ubuntu18.04
arch=x86_64
file=ubuntu-18.04.xz
checksum[sha512]=a6d29a4cde47837e63226454a56dca6b6adcbb7212b010b4ad5a3561e3890a45a914fb12a2c1e7a46be3ba6391469f765b083484408f4e6099642b9976e68d23
format=raw
size=6442450944
compressed_size=303347232
expand=/dev/sda1
notes=Ubuntu 18.04 (bionic)
This is a minimal Ubuntu install.
IMPORTANT WARNING:
It seems to be impossible to create an Ubuntu >= 14.04 image using
preseed without creating a user account. Therefore this image
contains a user account 'builder'. I have disabled it, so that
people who don't read release notes don't get caught out, but you
might still wish to delete it completely.
This image does not contain SSH host keys. To regenerate them use:
--firstboot-command "dpkg-reconfigure openssh-server"
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,19 @@
# This is the virt-install command which was used to create
# the virt-builder template 'ubuntu-18.04'
# 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-is04oapq' \
'--ram=2048' \
'--cpu=host' \
'--vcpus=4' \
'--os-variant=ubuntu17.04' \
'--initrd-inject=/tmp/qo9qe2ck.tmp/preseed.cfg' \
'--extra-args=auto mirror/http/proxy=http://cache.home.annexia.org:3128 console=tty0 console=ttyS0,115200 rd_NO_PLYMOUTH' \
'--disk=/home/rjones/d/libguestfs/builder/templates/tmp-is04oapq.img,size=6,format=raw' \
'--location=http://archive.ubuntu.com/ubuntu/dists/bionic/main/installer-amd64' \
'--serial=pty' \
'--nographics'

View File

@@ -1397,3 +1397,33 @@ notes=Ubuntu 16.04 (Xenial).
people who don't read release notes don't get caught out, but you might
still wish to delete it completely.
[ubuntu-18.04]
name=Ubuntu 18.04 (bionic)
osinfo=ubuntu18.04
arch=x86_64
file=ubuntu-18.04.xz
checksum[sha512]=a6d29a4cde47837e63226454a56dca6b6adcbb7212b010b4ad5a3561e3890a45a914fb12a2c1e7a46be3ba6391469f765b083484408f4e6099642b9976e68d23
format=raw
size=6442450944
compressed_size=303347232
expand=/dev/sda1
notes=Ubuntu 18.04 (bionic)
This is a minimal Ubuntu install.
IMPORTANT WARNING:
It seems to be impossible to create an Ubuntu >= 14.04 image using
preseed without creating a user account. Therefore this image
contains a user account 'builder'. I have disabled it, so that
people who don't read release notes don't get caught out, but you
might still wish to delete it completely.
This image does not contain SSH host keys. To regenerate them use:
--firstboot-command "dpkg-reconfigure openssh-server"
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

@@ -1400,19 +1400,49 @@ notes=Ubuntu 16.04 (Xenial).
people who don't read release notes don't get caught out, but you might
still wish to delete it completely.
[ubuntu-18.04]
name=Ubuntu 18.04 (bionic)
osinfo=ubuntu18.04
arch=x86_64
file=ubuntu-18.04.xz
checksum[sha512]=a6d29a4cde47837e63226454a56dca6b6adcbb7212b010b4ad5a3561e3890a45a914fb12a2c1e7a46be3ba6391469f765b083484408f4e6099642b9976e68d23
format=raw
size=6442450944
compressed_size=303347232
expand=/dev/sda1
notes=Ubuntu 18.04 (bionic)
This is a minimal Ubuntu install.
IMPORTANT WARNING:
It seems to be impossible to create an Ubuntu >= 14.04 image using
preseed without creating a user account. Therefore this image
contains a user account 'builder'. I have disabled it, so that
people who don't read release notes don't get caught out, but you
might still wish to delete it completely.
This image does not contain SSH host keys. To regenerate them use:
--firstboot-command "dpkg-reconfigure openssh-server"
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.
-----BEGIN PGP SIGNATURE-----
iQIcBAEBAgAGBQJaC0l/AAoJEJFzj3Pht2ig8LoQAKJKLfXnhwDgWMnXlptqqsL4
jZAcYxKCe57bMqjk1f3vgy5i+4+qx2/uQDqKQUgHJDaQMZkn6sUd2ValRkK7JLbd
sh7SEovUD7X1SpFkm0OE0XcF3Il9plvvHbn9s5ho6+QYAcA7r47FRd9SmMwNET+w
BjITLG3Ia0XnKzeyqtEzvWSwi9iOgyUDvwZKwqaLIxDR8lgpXYvHTCKx0vHY77wM
1dIsI8ASFRl2BElocYB43k0d25ZfdQ0rtmzea3JoncZAwnzFIGNcO+KY2baqCVgZ
vua7pxwgeGNfsJ9Un51A7U2vz9LrzitTDXUgm02EWzb/K1FDI6S6gVqwp+/S5M4K
OwM2iToBWfYtz1wHR6QjlRLXz3IddfT72xQwWLNYfl5r4BfHuDaKqFjNEjab8kym
jDW8ammNu3GfYtNtyIaNjGg3f+clZ/wIexiCAGsCnAAp1ZjmYKetcZL3j0mBCAQA
bWOsMOKVNCL/HimRu8ubiTmRiMKrzdJhdoRwdvoYgn6/CwrapuX5ksddh0drpEHT
neq0q/ril75EPL4wLMAJQguSXpWHcR9jd3QEECaBu/YoSUOjl86cS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