-
Notifications
You must be signed in to change notification settings - Fork 27
ignition-setup-user: Copy config directly into /run/ignition.json #161
Conversation
First, copying into `/usr` just feels wrong; ideally even in the initramfs `/usr` should be read-only. Second, doing it this way will help with future work for detecting the cases in which a config is provided; see: coreos/ignition#948
I think this worked, I did a build with it and used |
Writing directly to However, it might make sense to switch from |
There's already a file provider and as far as I can tell since the default directory should be
or so anyways. |
The file provider is intended for testing, e.g. the blackbox tests. What problem are you trying to solve? |
|
Sure, so you said. But how does avoiding the copy into |
Because this way it will go through the |
I guess I don't see it. The distinction you're trying to make is exactly the one between |
You're right that that would be sufficient to solve the default Live ISO case. But I am trying to generalize this a bit; for example; if one manually types an And more generally, I'd like to hook things up so that on platforms that support fetching Ignition without network, we eventually solve the original issue and only enable networking in the initramfs if we detect that the Ignition config uses remote includes. |
Sure, I understand the high-level goal. But I'm still not clear how this PR helps with it. |
Right, I think trying to solve the "conditional networking" issue at the provider level is not the way because of what Benjamin and I mentioned in coreos/ignition#948. We need to make changes to Ignition itself for this. |
First, copying into
/usr
just feels wrong; ideally even inthe initramfs
/usr
should be read-only.Second, doing it this way will help with future work for
detecting the cases in which a config is provided; see:
coreos/ignition#948