!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

600 Members
NixOS ❤️ systemd165 Servers

Load older messages


SenderMessageTime
6 Oct 2024
@elvishjerricco:matrix.orgElvishJerricco 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:matrix.orgElvishJerricco * 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
@arianvp:matrix.orgArianBut 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
@arianvp:matrix.orgArianthere's basically nothing that systemd itself needs before it starts up..20:52:34
@elvishjerricco:matrix.orgElvishJerricco 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:matrix.orgElvishJerricco but also, basically every system still needs /etc to be set up 21:00:47
@elvishjerricco:matrix.orgElvishJerriccoeven if systemd itself doesn't21:00:53
@arianvp:matrix.orgArian yes but that's not a problem. Run etc setup before sysinit.target 21:01:15
@arianvp:matrix.orgArian everything before sysinit.target runs without /etc 21:01:22
@elvishjerricco:matrix.orgElvishJerricconot exactly21:01:30
@elvishjerricco:matrix.orgElvishJerriccowell21:01:33
@elvishjerricco:matrix.orgElvishJerriccoI guess that's true in a container, which is the case we care about21:01:40
@elvishjerricco:matrix.orgElvishJerriccooh21:01:47
@elvishjerricco:matrix.orgElvishJerriccono21:01:47
@arianvp:matrix.orgArianIt's true in systemd as well21:01:49
@elvishjerricco:matrix.orgElvishJerriccotmpfiles21:01:49
@elvishjerricco:matrix.orgElvishJerricco
In reply to @arianvp:matrix.org
It's true in systemd as well
no it isn't
21:01:59
@elvishjerricco:matrix.orgElvishJerricco systemd-cryptsetup-generator 21:02:05
@elvishjerricco:matrix.orgElvishJerriccofor instance21:02:08
@elvishjerricco:matrix.orgElvishJerriccoseveral of the generators really21:02:17
@elvishjerricco:matrix.orgElvishJerriccofstab, verity21:02:24
@elvishjerricco:matrix.orgElvishJerriccoand, again, tmpfiles21:02:43
@elvishjerricco:matrix.orgElvishJerricco I think /etc is a must 21:02:52
@elvishjerricco:matrix.orgElvishJerricco I mean, systemd can boot without those things, for a system that doesn't use them 21:03:43
@elvishjerricco:matrix.orgElvishJerriccobut containers are going to be using things like tmpfiles21:03:58
@elvishjerricco:matrix.orgElvishJerricconot to mention config files for various things like systemd itself and journald21:05:09
@arianvp:matrix.orgArianAll these things can read from credentials as well21:05:13
@elvishjerricco:matrix.orgElvishJerriccook but that's more setup21:05:21
@elvishjerricco:matrix.orgElvishJerricco these things have to be set up 21:05:28
@elvishjerricco:matrix.orgElvishJerricco and we already have /etc 21:05:32

Show newer messages


Back to Room ListRoom Version: 6