Open ajeddeloh opened 6 years ago
On Tue, Oct 16, Andrew Jeddeloh wrote:
cc @thkukuk since they might have some insight on what things would be helpful in that kind of document.
For me, a little diagram how ignition works together with the rest of the system would be very helpfull. Else:
As first ideas, I'm pretty sure more will come up.
-- Thorsten Kukuk, Distinguished Engineer, Senior Architect SLES & MicroOS SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany GF: Felix Imendoerffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nuernberg)
Some notes:
Requirements from the distro include:
ignition.firstboot
kernel argument is set only on first bootfetch-offline
stage indicates that it needs networkkernelArguments
section is to be supported/boot/ignition/config.ign
, or from /config.ign
in an appended initrd) to /usr/lib/ignition/user.ign
in the initrd. Consider deleting a persistent injected config (e.g. /boot/ignition
) after Ignition completes successfully.is-live-image
command in the initrd that exits 0 in the live image case.In #751, to document use of a build flag useAuthorizedKeysFile
, I was initially looking for a file somewhere in https://github.com/coreos/ignition/tree/master/doc that could contain info on requirements pertaining to the distro. Adding another doc like distribution-integration.md
or distribution-requirements.md
would stand out I think.
We're trying to make ignition-dracut distro-independent, so we should reference that too.
https://github.com/coreos/ignition-dracut/pull/56 requires the ignition
binary to be installed into the dracut module directory. More generally, ignition
should never be installed in the PATH.
Looks like this is similar to https://github.com/coreos/ignition/issues/763 and @dustymabe gave some great tips over there.
In #960 we added LUKS support and are now writing entries to /etc/crypttab
when creating LUKS devices expecting that something (e.x.: systemd-cryptsetup-generator
/ clevis-luks-askpass
) will create hooks to unlock the devices in the real root.
In #1250 / #1254 / #1267 we added a report in /etc/.ignition-result.json
that the OS can use to get information about how the Ignition run went.
See also discussion in https://github.com/coreos/fedora-coreos-tracker/issues/1311.
Bug
Operating System Version
Any
Ignition Version
Any
Environment
Any
Expected Behavior
Requirements for Ignition to run in the initramfs are documented
Actual Behavior
There are no docs outlining how to include Ignition in the initramfs.
Reproduction Steps
1) Be a distro maintainer 2) See this snazzy thing called Ignition 3) Be lost at what needs to happen to include it in the initramfs
Other Information
cc @thkukuk since they might have some insight on what things would be helpful in that kind of document.