diskimage-builder/diskimage_builder/elements/zipl
Zhiguo Deng 271dc36f33 Add zipl element as s390x architecture bootloader
s390x architecture uses zipl as bootloader. When used in combination
with the vm element it replaces the existing bootloader element.
It's mandatory for s390x vm images.

Use cases
---------

* Allow users to create s390x images that run on nova with s390x
  libvirt/kvm backend
* Building nodepool images for s390x third party CI

Supported Distros
-----------------
The following listing shows all Distros that officially support
s390x and how those Distros are supported in DIB with this patch.

* SLES - not supported (SLES is not supported in DIB)
* RHEL - not suppoprted (RHEL is not supported as KVM guest on s390x,
                         therefore there's no rhel7 qcow image for s390x available
                         like it is for other archictectures)
* Ubuntu - supported

Ubuntu images can for example be built using the following commands:

  $ disk-image-create ubuntu-minimal zipl vm
  $ disk-image-create ubuntu-minimal zipl
  $ disk-image-create ubuntu zipl vm

Testing
-------

Cross architecture building of s390x images is not supported so far.

The plan is to set up a ThirdParty CI that builds the image for s390x and
provides the logs.

Co-Authored-By: Andreas Scheuring <andreas.scheuring@de.ibm.com>
Co-Authored-By: Holger Smolinsky <holger@smolinski.name>
Co-Authored-By: Zhiguo Deng <bjzgdeng@linux.vnet.ibm.com>
Co-Authored-By: Arne Recknagel <arne.recknagel@hotmail.com>

Closes-Bug: #1730641

Change-Id: I576e7edda68da12e97c60af38f457915efe7b934
2017-11-07 17:19:27 +01:00
..
environment.d Add zipl element as s390x architecture bootloader 2017-11-07 17:19:27 +01:00
finalise.d Add zipl element as s390x architecture bootloader 2017-11-07 17:19:27 +01:00
pre-install.d Add zipl element as s390x architecture bootloader 2017-11-07 17:19:27 +01:00
element-deps Add zipl element as s390x architecture bootloader 2017-11-07 17:19:27 +01:00
element-provides Add zipl element as s390x architecture bootloader 2017-11-07 17:19:27 +01:00
package-installs.yaml Add zipl element as s390x architecture bootloader 2017-11-07 17:19:27 +01:00
README.rst Add zipl element as s390x architecture bootloader 2017-11-07 17:19:27 +01:00

==========
zipl
==========

Zipl is the bootloader for s390x.

This element installs zipl on the base device holding the /boot directory on the system.
It's mandatory for building s390x images. It replaces the `bootloader` element
(which would install grub2 by default).

This element has been tested with `ubuntu` and `ubuntu-minimal` distro.

Arguments
=========

* ``DIB_ZIPL_DEFAULT_CMDLINE`` sets the CMDLINE parameters that
  are appended to the zipl.conf parameter configuration. It defaults to
  'LANG=en_US.UTF-8 console=ttyS0 console=ttyS1'