!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

Load older messages


SenderMessageTime
7 Apr 2022
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deline 77 ;)15:34:13
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Janne Heß: Shouldn't we just be letting systemd do that rather than having it skip it? 15:35:05
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deyeah, that‘s what I‘m currently trying15:35:18
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.dehmmm looks like my current bindmount magic doesn‘t do its magic anymore15:36:20
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deah it does but I‘m holding it wrong15:38:23
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Janne Heß: Why do we need the /run bind mount in initrd-nixos-activation.service? If systemd will move the mount for us, then /run/current-system/systemd/lib/systemd/system will exist as needed by the time switch-root gets to that point 15:40:06
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.debecause the activation script needs to access a lot in /run15:40:23
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgit does? That seems weird15:40:31
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.delike /run/current-system, booted-system, /run/secrets (for sops-nixos users like myself)15:40:42
@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

Show newer messages


Back to Room ListRoom Version: 6