!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/5127 Servers

Load older messages


SenderMessageTime
2 May 2023
@arianvp:matrix.orgArian because systemd-repart runs before sysroot is mounted 21:49:04
@arianvp:matrix.orgAriannot after21:49:08
@arianvp:matrix.orgArianso how does it know the device of /sysroot?21:49:19
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Well, it can. It can work either way. 21:49:45
@arianvp:matrix.orgArianhttps://github.com/systemd/systemd/blob/main/units/systemd-repart.service.in#L1721:50:03
@elvishjerricco:matrix.org@elvishjerricco:matrix.org If you don't have a separate /usr partition, then IIRC initrd-usr-fs.target isn't reached until /sysroot is mounted 21:50:04
@arianvp:matrix.orgArianaaah21:50:12
@arianvp:matrix.orgArianI see21:50:15
@arianvp:matrix.orgArian and they assume /usr and / on same disk so works out 21:50:44
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgright21:51:20
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgfun fact21:51:32
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgthere's a slight race condition there21:51:37
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Whether /sysroot is mounted before or after systemd-repart checks that path for definitions files is a race I'm pretty sure 21:52:09
@elvishjerricco:matrix.org@elvishjerricco:matrix.org when you have a separate /usr that is 21:52:19
@arianvp:matrix.orgArianisn't that handled by Before=initrd-root-fs.target21:52:43
@elvishjerricco:matrix.org@elvishjerricco:matrix.org No. sysroot.mount is Before=initrd-root-fs.target 21:53:05
@elvishjerricco:matrix.org@elvishjerricco:matrix.org It's After=initrd-root-device.target, but systemd-repart.service has no ordering with that 21:53:26
@arianvp:matrix.orgArianah yeh that's a bug21:54:34
@elvishjerricco:matrix.org@elvishjerricco:matrix.org tbh there's a lot that's cursed about upstream's initrd stuff due to how heavily they rely on their expectations about /sysroot and /sysusr 21:55:07
@elvishjerricco:matrix.org@elvishjerricco:matrix.orghttps://github.com/NixOS/nixpkgs/issues/22955522:17:28
3 May 2023
@mberndt:matrix.org@mberndt:matrix.org joined the room.23:22:21
@ulli:hrnz.li@ulli:hrnz.li joined the room.23:24:37
@mberndt:matrix.org@mberndt:matrix.orgI've added a module to enable booting from a root file system on a Stratis volume. All input is welcome. https://github.com/NixOS/nixpkgs/pull/229767 It would be nice to test this, but I have almost no experience with Nix or NixOS, so I don't really know where to start. 23:25:32
@mberndt:matrix.org@mberndt:matrix.org Nick Cao, you packaged Stratisd, right? So this might be of interest to you 23:26:12
@mberndt:matrix.org@mberndt:matrix.orgI'm not using Clevis myself, so I haven't added support for that yet. 23:27:15
@mberndt:matrix.org@mberndt:matrix.orgAlso it would be nice if nixos-generate-config could automatically detect stratis volumes and configure things appropriately. I might do these things in a future version, but for now I'd like to get this MVP-type thing merged ;-)23:29:32
@mberndt:matrix.org@mberndt:matrix.org * Also it would be nice if nixos-generate-config could automatically detect stratis volumes and configure things appropriately. I might do these things in a future version, but for now I'd like to get this MVP-type thing merged 23:29:48
@mberndt:matrix.org@mberndt:matrix.orgOh, and probably not every single one of the crypto modules is needed 😅 But I don't know which ones could be needed, so I just added a whole bunch of them. #worksOnMyMachine23:33:00
4 May 2023
@elvishjerricco:matrix.org@elvishjerricco:matrix.org mberndt: Did you test that without plymouth? Because my guess it that it should work without plymouth, if it uses systemd-ask-password. 00:28:21
@mberndt:matrix.org@mberndt:matrix.orgBenutzt es aber nicht05:41:48

Show newer messages


Back to Room ListRoom Version: 6