!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

82 Members
systemd in NixOs's stage 1, replacing the current bash tooling https://github.com/NixOS/nixpkgs/projects/5126 Servers

Load older messages


SenderMessageTime
7 Apr 2022
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deah /run/wrappers15:41:25
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgmaybe we could run $closure/init in its own mount namespace or something15:42:13
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgDoesn't nixos-enter do all this logic itself anyway?15:43:07
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.denope, because we need to keep these mounts :D15:43:11
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Janne Heß: Why? systemd will do the moves for us, and then they're moves instead of binds (dunno if that matters) 15:43:35
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.denew mounts are created that we must keep like /run/wrappers, /run/secrets.d (sops-nix again), /run/keys15:43:40
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgohh15:43:45
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deyup+15:43:53
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI guess the moves aren't recursive15:43:53
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de but I have that working 15:43:57
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deI wrote a recursive mount mover, that works surprisingly well15:44:13
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgHow does the old initrd handle moving these?15:46:03
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.denot at all because theactivation script is only run in stage 215:46:38
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deit just moves /run15:46:49
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgah15:47:52
@elvishjerricco:matrix.org@elvishjerricco:matrix.org and yea if we want handover, we have to do activation in stage 1 15:48:00
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgwell...15:48:11
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgactually15:48:13
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deI think I have nailed it15:48:25
@elvishjerricco:matrix.org@elvishjerricco:matrix.org incoming ideas for hacks 15:48:24
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.dethe only oddity is that it cannot find my swap15:48:39
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.debut yeah - it doesn‘t unmount /nix anymore15:49:05
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgwe could do activation in a systemd-generator, or we could set default.target for stage 2 to an activation script that does a daemon-reload and starts the real default.target15:49:12
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI actually like those more than doing activation in stage 1 now that I think about it15:49:21
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgparticularly the latter idea15:49:27
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.defeel free to implement this :D 2 systemds are already painful enough for me15:49:45
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deArian: that also removes the ugly cmdline hack and gives us a proper init=15:52:13
@arianvp:matrix.org@arianvp:matrix.orgWoha there is a mechanism for this15:52:26
@elvishjerricco:matrix.org@elvishjerricco:matrix.org?15:52:30
@arianvp:matrix.org@arianvp:matrix.orgActivation script could be an https://www.freedesktop.org/software/systemd/man/systemd.environment-generator.html15:52:53

Show newer messages


Back to Room ListRoom Version: 6