!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

Load older messages


SenderMessageTime
23 May 2023
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgsysusers is a tad tricky because it doesn't do user removal or historical id tracking like we do22:23:38
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgbut 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.org@elvishjerricco:matrix.orgright22:24:36
@arianvp:matrix.orgAriansystemd runs with without /etc/passwd populated22:24:39
@elvishjerricco:matrix.org@elvishjerricco:matrix.organd 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.org@elvishjerricco:matrix.org 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.org@elvishjerricco:matrix.org 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.org@elvishjerricco:matrix.orgNot sure exactly at the moment but it's fairly unlikely you want local-FS21:23:37
@elvishjerricco:matrix.org@elvishjerricco:matrix.org* Not sure exactly at the moment but it's fairly unlikely you want local-fs21:23:43
@elvishjerricco:matrix.org@elvishjerricco:matrix.org We use x-initrd.mount so the host's file systems are in initrd-fs.target 21:24:27
@lily:lily.flowers@lily:lily.flowers I use initrd-root-device.target and initrd-root-fs.target and sysroot.mount for ordering 21:27:03
@lily:lily.flowers@lily:lily.flowersBut that won't work until systemd v254 because my PR wasn't backported to 25321:27:23
@lily:lily.flowers@lily:lily.flowersNot for nixos21:27:26
@lily:lily.flowers@lily:lily.flowers Unless we start setting root= on the cmdlin0 21:27:36
@lily:lily.flowers@lily:lily.flowers* Unless we start setting `root=` on the cmdline21:27:41
@winterqt:nixos.devWinter (she/her)maybe I should just move back to sh initrd21:27:46
@winterqt:nixos.devWinter (she/her)running into weird issues with systemd initrd :/21:27:54
@lily:lily.flowers@lily:lily.flowersSee https://github.com/lilyinstarlight/foosteros/blob/5fc9246b28bf77568f8ae28248ab042c78b841ab/config/ephemeral.nix for what I have for that21:28:08
@elvishjerricco:matrix.org@elvishjerricco:matrix.org
In reply to @winterqt:nixos.dev
running into weird issues with systemd initrd :/
Please document and open issues!
21:28:24
@lily:lily.flowers@lily:lily.flowersAnd https://github.com/lilyinstarlight/foosteros/blob/5fc9246b28bf77568f8ae28248ab042c78b841ab/config/base.nix#L92-L105 for the workaround until v25421:28:42
@winterqt:nixos.devWinter (she/her)
In reply to @elvishjerricco:matrix.org
Please document and open issues!
If I can reliably reproduce them, I will.
But the one I'm talking about is where luksroot just... fails randomly, leading to a broken emergency shell...?
21:29:23

Show newer messages


Back to Room ListRoom Version: 6