!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

Load older messages


SenderMessageTime
11 Jan 2023
@elvishjerricco:matrix.org@elvishjerricco:matrix.org oh wow yea it just wholesale cps those udev rules lol 14:38:44
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Mic92: I think we just decided not to include any foobarCommands on principle. 14:41:33
@joerg:thalheim.ioMic92 ElvishJerricco: ok, but including udev rules is fine, no? 14:41:52
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgeh, the way that particular thing works is iffy14:42:31
@joerg:thalheim.ioMic92what is the current way?14:42:45
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgwe don't have a phase where random commands can be run14:42:47
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgthe scripted initrd does14:42:59
@elvishjerricco:matrix.org@elvishjerricco:matrix.org(i.e. the extra-utils derivation)14:43:07
@joerg:thalheim.ioMic92Can I now just include a package that gets merged somehow?14:43:09
@andreas.schraegle:helsinki-systems.de@andreas.schraegle:helsinki-systems.de shouldn't boot.initrd.services.udev.packages = lib.mkIf cfg.enable [ pkgs.mdadm ]; do that? 14:43:16
@elvishjerricco:matrix.org@elvishjerricco:matrix.org
In reply to @andreas.schraegle:helsinki-systems.de
shouldn't boot.initrd.services.udev.packages = lib.mkIf cfg.enable [ pkgs.mdadm ]; do that?
Oh, yes
14:43:26
@joerg:thalheim.ioMic92will test14:44:00
@andreas.schraegle:helsinki-systems.de@andreas.schraegle:helsinki-systems.de nixos/modules/tasks/swraid.nix already does that, so it should already work without a config. idk why the test adds one. 14:50:29
@elvishjerricco:matrix.org@elvishjerricco:matrix.org

the test

What test?

14:50:56
@andreas.schraegle:helsinki-systems.de@andreas.schraegle:helsinki-systems.de
In reply to @joerg:thalheim.io
Andreas Schrägle: https://github.com/NixOS/nixpkgs/blob/2ff336107f66ce6c3f89eb36d0b7492b1b9d3c2a/nixos/tests/systemd-initrd-swraid.nix#L23
.
14:51:11
@joerg:thalheim.ioMic92also seems to be not enough from I can see14:51:19
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgah14:51:23
@joerg:thalheim.ioMic92I see a lot of lines like this: /nix/store/maw4dvj4zyn7l4gn7l4ic77w6mir8yr8-systemd-stage-1-252.1/lib/udev/rules.d/50-udev-default.rules:85 Unknown group 'disk', ignoring14:51:58
@joerg:thalheim.ioMic92Is this normal?14:52:02
@elvishjerricco:matrix.org@elvishjerricco:matrix.org ok so the test is just adding the mdconf, akin to how a machine would have a particular setting for fileSystems 14:52:29
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Mic92: Yes that's normal 14:52:41
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI have a fix in a commit somewhere...14:52:53
@joerg:thalheim.ioMic92However for more complex raid setups it's quite tedious to specify all members of a raid14:53:05
@elvishjerricco:matrix.org@elvishjerricco:matrix.orghttps://github.com/NixOS/nixpkgs/pull/169116/commits/589bbf4fc04aacbb1b6c89b6ca9bba40dfce390414:53:36
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgthe issue is just that a bunch of udev rules specify default groups for a bunch of stuff14:54:07
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgso the groups required by initrd shouldn't be system specific or anything14:54:39
@elvishjerricco:matrix.org@elvishjerricco:matrix.organyway,14:54:43
@elvishjerricco:matrix.org@elvishjerricco:matrix.org even without the fix, it probably isn't the source of any problems 14:55:02
@joerg:thalheim.ioMic92tracked here: https://github.com/NixOS/nixpkgs/issues/21021015:00:10
@lily:lily.flowers@lily:lily.flowers joined the room.18:21:30

Show newer messages


Back to Room ListRoom Version: 6