coreos / ignition

First boot installer and configuration tool
https://coreos.github.io/ignition/
Apache License 2.0
841 stars 247 forks source link

There are no docs for how to incorporate Ignition in a distro #649

Open ajeddeloh opened 6 years ago

ajeddeloh commented 6 years ago

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.

thkukuk commented 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)

bgilbert commented 6 years ago

Some notes:

Requirements from the distro include:

rfairley commented 5 years ago

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.

bgilbert commented 5 years ago

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.

purpleidea commented 5 years ago

Looks like this is similar to https://github.com/coreos/ignition/issues/763 and @dustymabe gave some great tips over there.

arithx commented 4 years ago

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.

bgilbert commented 2 years ago

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.

bgilbert commented 2 years ago

See also discussion in https://github.com/coreos/fedora-coreos-tracker/issues/1311.