!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

Load older messages


SenderMessageTime
23 May 2023
@arianvp:matrix.orgArianhmmph maybe. need to give it some thought during sleep21:50:43
@elvishjerricco:matrix.orgElvishJerriccoI mean, the more we can kill from activation, the better. Personally I'd like to see it eliminated entirely. But as is, I think the expectation is that it comes before stage 221:53:09
@arianvp:matrix.orgArian activation script in the old initrd also doesnt work in nspawn :) (tries to run echo ${pkgs.kmod}/bin/modprobe > /proc/sys/kernel/modprobe and fails) 22:14:29
@elvishjerricco:matrix.orgElvishJerriccoyea I was wondering if that ever worked to begin with :P22:15:04
@arianvp:matrix.orgArianso it's the same amount of broken :)22:15:18
@elvishjerricco:matrix.orgElvishJerricco
In reply to @arianvp:matrix.org
for systemd units we can use the SYSTEMD_UNITS env var
(btw I can't find anything about this environment variable; git grep SYSTEMD_UNITS in the systemd repo comes up blank)
22:18:18
@arianvp:matrix.orgArian sorry SYSTEMD_UNIT_PATH 22:19:11
@arianvp:matrix.orgArian in man init 22:19:13
@elvishjerricco:matrix.orgElvishJerriccoah22:19:19
@arianvp:matrix.orgArianthink a lot of things in the activation script we can do with systemd primitives in the future22:23:05
@arianvp:matrix.orgAriansystemd-tmpfiles, systemd-sysusers etc22:23:13
@elvishjerricco:matrix.orgElvishJerriccoyea22:23:18
@elvishjerricco:matrix.orgElvishJerriccosysusers is a tad tricky because it doesn't do user removal or historical id tracking like we do22:23:38
@elvishjerricco:matrix.orgElvishJerriccobut I do want to move that out of activation eventually22:23:48
@arianvp:matrix.orgArianuser generation could definitely just be a systemd unit22:24:30
@elvishjerricco:matrix.orgElvishJerriccoright22:24:36
@arianvp:matrix.orgAriansystemd runs with without /etc/passwd populated22:24:39
@elvishjerricco:matrix.orgElvishJerriccoand anything with DefaultDependencies=no that also needs particular users is ordered after systemd-sysusers (at least in systemd's own units)22:25:15
@arianvp:matrix.orgArian user removal is easy with sysusers.d. just remove /etc/passwd and rerun it 22:27:36
@arianvp:matrix.orgArian

and you can reserve uids with sysusers.d too

r - 500 reserves uid 500

22:28:17
@elvishjerricco:matrix.orgElvishJerricco well we still have to track the /var/lib/nixos/* user id stuff 22:28:41
@arianvp:matrix.orgArian oh wait no that/s not what r does 22:28:44
@elvishjerricco:matrix.orgElvishJerricco And I dunno if you can safely just remove passwd. Having it disappear even for a moment could create problems if other things happen at just the wrong times 22:29:31
@arianvp:matrix.orgArianyou probably cant x)22:31:29
24 May 2023
@mberndt:matrix.org@mberndt:matrix.orgRedacted or Malformed Event08:00:22
27 May 2023
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.16:41:28
28 May 2023
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @elvishjerricco:matrix.org
sysusers is a tad tricky because it doesn't do user removal or historical id tracking like we do
cc nikstur
09:33:30
@winterqt:nixos.devWinter (she/her)
  boot.initrd.systemd.services.wipe-root = {
    wantedBy = [ "cryptsetup.target" ];
    after = [ "cryptsetup.target" ];
    before = [ "local-fs.target" ];

anyone know why this causes (apparently) a dep cycle?

21:22:46
@elvishjerricco:matrix.orgElvishJerriccoNot sure exactly at the moment but it's fairly unlikely you want local-FS21:23:37
@elvishjerricco:matrix.orgElvishJerricco* Not sure exactly at the moment but it's fairly unlikely you want local-fs21:23:43

Show newer messages


Back to Room ListRoom Version: 6