6 Oct 2024 |
ElvishJerricco | Like I've said before, every distro does some kind of pre-boot set up. In the /usr -only case, that's just installing /usr such that it's at the well known /usr location. A NixOS system config inherently has no well-known location. | 20:17:52 |
ElvishJerricco | * Like I've said before, every distro does some kind of pre-boot set up. In the /usr -only case, that's just installing /usr such that it's at the well-known /usr location. A NixOS system config inherently has no well-known location. | 20:18:05 |
Arian | But our activation script does not do usr-like setup things .. it does just etc-like setup things. Which is not needed as we can boot up fine without any of the files in etc being available... | 20:52:24 |
Arian | there's basically nothing that systemd itself needs before it starts up.. | 20:52:34 |
ElvishJerricco | Arian: I know, and maybe SYSTEMD_UNITS is a fine way to do it. My point is mainly that it's still the same philosophy; something has to be setup first. | 20:57:07 |
ElvishJerricco | but also, basically every system still needs /etc to be set up | 21:00:47 |
ElvishJerricco | even if systemd itself doesn't | 21:00:53 |
Arian | yes but that's not a problem. Run etc setup before sysinit.target | 21:01:15 |
Arian | everything before sysinit.target runs without /etc | 21:01:22 |
ElvishJerricco | not exactly | 21:01:30 |
ElvishJerricco | well | 21:01:33 |
ElvishJerricco | I guess that's true in a container, which is the case we care about | 21:01:40 |
ElvishJerricco | oh | 21:01:47 |
ElvishJerricco | no | 21:01:47 |
Arian | It's true in systemd as well | 21:01:49 |
ElvishJerricco | tmpfiles | 21:01:49 |
ElvishJerricco | In reply to @arianvp:matrix.org It's true in systemd as well no it isn't | 21:01:59 |
ElvishJerricco | systemd-cryptsetup-generator | 21:02:05 |
ElvishJerricco | for instance | 21:02:08 |
ElvishJerricco | several of the generators really | 21:02:17 |
ElvishJerricco | fstab, verity | 21:02:24 |
ElvishJerricco | and, again, tmpfiles | 21:02:43 |
ElvishJerricco | I think /etc is a must | 21:02:52 |
ElvishJerricco | I mean, systemd can boot without those things, for a system that doesn't use them | 21:03:43 |
ElvishJerricco | but containers are going to be using things like tmpfiles | 21:03:58 |
ElvishJerricco | not to mention config files for various things like systemd itself and journald | 21:05:09 |
Arian | All these things can read from credentials as well | 21:05:13 |
ElvishJerricco | ok but that's more setup | 21:05:21 |
ElvishJerricco | these things have to be set up | 21:05:28 |
ElvishJerricco | and we already have /etc | 21:05:32 |