Configuration of openSUSE MicroOS and openSUSE Kubic with Ignition
This Wiki page will contain SUSE specific information; for general Ignition documentation please refer to the current development snapshot on https://github.com/coreos/ignition/tree/master/doc.
Ignition is not part of Factory yet, but developed in https://build.opensuse.org/project/show/devel:kubic:ignition.
Use the following commands to install the current stack:
zypper addrepo --refresh https://download.opensuse.org/repositories/devel:kubic:ignition/openSUSE_Tumbleweed/devel:kubic:ignition.repo transactional-update pkg in ignition-dracut
Ignition configuration files
See the current Ignition documentation for creating Ignition files.
x-initrd.mountwill be mounted during the files stage of Ignition. On a openSUSE MicroOS based systems this means that /var and /etc will be available by default, but /home or /root won't be. Make sure to add the flag to all mount points in /etc/fstab where you need access to.
Install the package ignition-dracut. On first boot after installation Ignition will be triggered.
The packages' post script will try to detect the current platform and set
ignition.platform.id in /etc/default/grub accordingly. If the platform could not be detected
metal is used as the default value.
Ignition will be triggered if the
ignition.firstboot kernel parameter is set. This can be achieved by using one of the following methods:
- Manually add the parameter
ignition.firstbootto the kernel command line.
- Create the file /boot/writable/ignition.firstboot (which may contain further kernel parameters).
Note that Ignition also need the
ignition.platform.id parameter to be set.
USB flash drive
Similarily to cloud-init's LocalDisk source it is possible to use a local media for loading the Ignition configuration.
To use this feature create a disk with the label ignition and copy the Ignition configuration to a file called ignition/config.ign.