!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
30 Oct 2022
@claesatwork:matrix.orgClaes joined the room.04:56:20
31 Oct 2022
@oxalica:matrix.org@oxalica:matrix.org https://github.com/NixOS/nixpkgs/blob/00bde1ac69b572f56ca461a76d8f1db59b29da0f/nixos/modules/services/hardware/udev.nix#L13 Is there a reason why not all upstream udev rules are included? Some rules seems important, like btrfs and vconsole 16:55:16
@oxalica:matrix.org@oxalica:matrix.orgAlso I found that systemd udev rules is even not in stage 2 (services.udev.packages), which is very problematic to me16:57:00
@oxalica:matrix.org@oxalica:matrix.org I'm trying to enable all rules in at least stage 2. https://github.com/NixOS/nixpkgs/pull/198823 Maybe we should also include more rules in initrd? 18:31:13
@elvishjerricco:matrix.org@elvishjerricco:matrix.org oxalica: I could be wrong but doesn't systemd automatically include the udev rules in its own out path? Have you confirmed that they aren't actually currently in use in stage 2? 18:32:14
@elvishjerricco:matrix.org@elvishjerricco:matrix.org(stage 1 is another story of course)18:32:20
@oxalica:matrix.org@oxalica:matrix.org
In reply to @elvishjerricco:matrix.org
oxalica: I could be wrong but doesn't systemd automatically include the udev rules in its own out path? Have you confirmed that they aren't actually currently in use in stage 2?
Yes. Because vconsole-setup doesn't restart when my GPU driver loaded
18:32:48
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgAnd you've confirmed that adding all udev rules from systemd changes that behavior?18:33:16
@oxalica:matrix.org@oxalica:matrix.orgIt used to work, and it broke about several months ago18:33:32
@oxalica:matrix.org@oxalica:matrix.org
In reply to @elvishjerricco:matrix.org
And you've confirmed that adding all udev rules from systemd changes that behavior?
Yes it fixes for me
18:33:42
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgHm... I'm guessing there's some kind of reason for it being the way it is18:34:09
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgas for stage 1, we certainly can't support all the rules that systemd provides because we don't include all the user space tools required, so it's probably best to only have the ones we know we need? Not sure18:34:40
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgBut hopefully there's some kind of explanation for stage 2 in git history or a PR thread somewhere...18:35:04
@oxalica:matrix.org@oxalica:matrix.org
In reply to @elvishjerricco:matrix.org
oxalica: I could be wrong but doesn't systemd automatically include the udev rules in its own out path? Have you confirmed that they aren't actually currently in use in stage 2?
:thinking: Seems systemd-analyze cat-config udev/rules.d do contain upstream rules even without that PR. But I double checked that vconsole-setup do break iff we don't explicitly include rules...
18:40:36
@oxalica:matrix.org@oxalica:matrix.org * 🤔 Seems systemd-analyze cat-config udev/rules.d do contain upstream rules even without that PR. But I double checked that vconsole-setup do break iff we don't explicitly include rules... 18:40:51
@elvishjerricco:matrix.org@elvishjerricco:matrix.org I'm not sure that systemd-analyze command is doing what you think it is. When I list the files in my /etc/udev/rules.d/ on my desktop, it has nothing in common with the stock systemd udev rules 18:52:58
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgwhich seems quite odd indeed...18:53:05
@elvishjerricco:matrix.org@elvishjerricco:matrix.org maybe there was a commit where systemd was accidentally removed from services.udev.packages? 18:54:42
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgfor instance there's these lines that have to do with a udev rule that's in systemd but not installed on my system: https://github.com/NixOS/nixpkgs/blob/15a051a5b64c8b8bd7c402d102ec273df807e897/nixos/modules/services/hardware/udev.nix#L147-L14918:55:25
@elvishjerricco:matrix.org@elvishjerricco:matrix.org I eval'd config.services.udev.packages in nixos versions back to 19.09 and systemd was never in there. Though interesetingly, udisks is newly missing in nixos-unstable, but was there from 22.05 and backwards 19:07:38
@oxalica:matrix.org@oxalica:matrix.org My vconsole-setup issue is spotted from around 2022-09-12 https://matrix.to/#/%23stage1-systemd%3Anixos.org/%24hY0xc__Lg14Fy8aUCcfYc-rq42MHNePejrnhxQHgTSY?via=matrix.org&via=tchncs.de&via=helsinki-systems.de&via=ckie.dev 19:11:19
@oxalica:matrix.org@oxalica:matrix.org * My vconsole-setup issue is spotted since around 2022-09-12 https://matrix.to/#/%23stage1-systemd%3Anixos.org/%24hY0xc__Lg14Fy8aUCcfYc-rq42MHNePejrnhxQHgTSY?via=matrix.org&via=tchncs.de&via=helsinki-systems.de&via=ckie.dev 19:11:47
@tinybronca:sibnsk.net@tinybronca:sibnsk.net changed their display name from underpantsgnome! to underpantsgnome.20:29:29
1 Nov 2022
@elvishjerricco:matrix.org@elvishjerricco:matrix.org While working on the systemd 252 update, I noticed that the hibernate-systemd-stage-1 test is already failing on hydra. There are way too many units getting started before the hibernation resume unit does. 01:31:14
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgWhen you resume from hibernation, ideally initrd has started only the units necessary to bring up the resume device01:32:50
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI wonder if we're missing a unit from upstream or something01:33:07
@flokli:matrix.orgflokli I think some tests with systemd-initrd are "known to be broken". We should probably at least add a comment on these, so people know what to expect. 07:26:18
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgUh. They weren't broken before. They should be fixed07:28:39
@flokli:matrix.orgflokliNixpkgs bisect go brr then, i guess08:04:11
@flokli:matrix.orgflokliSheesh, there needs to be some better regression tracking.08:04:29

Show newer messages


Back to Room ListRoom Version: 6