!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

574 Members
NixOS ❤️ systemd158 Servers

Load older messages


SenderMessageTime
23 Jan 2025
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgthere's a draft PR for it03:02:21
@matthewcroughan:defenestrate.itmatthewcroughan I also found that on asahi the shutdown -H feature doesn't work 03:03:12
@matthewcroughan:defenestrate.itmatthewcroughan nor does systemctl halt, it just reboots 03:03:20
@matthewcroughan:defenestrate.itmatthewcroughanthe SMC on macs is BS03:03:27
@matthewcroughan:defenestrate.itmatthewcroughangithub.com/AsahiLinux/linux/blob/asahi/drivers/power/reset/macsmc-reboot.c#L204-L20803:03:46
24 Jan 2025
@rntpts:synapse.rntpts.derntpts joined the room.17:30:39
@bumperboat:matrix.orgbumperboat joined the room.20:04:08
@bumperboat:matrix.orgbumperboat anyone seeing this Failed to connect to user scope bus via local transport: Connection refused with sytemctl --user 20:05:28
25 Jan 2025
@jade_:matrix.orgjade_
In reply to @bumperboat:matrix.org
anyone seeing this Failed to connect to user scope bus via local transport: Connection refused with sytemctl --user
check the status of user@$UID.service on the system manager perhaps
04:24:39
@aloisw:julia0815.dealoisw changed their profile picture.10:22:06
26 Jan 2025
@iridium:faui2k11.deiridium ElvishJerricco: I think I might have found the reason for my "Freezing execution"-bug, and I think it's pretty mundane, actually 🙂 15:40:53
@iridium:faui2k11.deiridium Or let's say one reason, not sure if it's the only one 15:41:58
@iridium:faui2k11.deiridiumhttps://github.com/systemd/systemd/blob/main/src/core/manager.c#L4272-L427915:42:51
@iridium:faui2k11.deiridiumThat's the part that's failing15:42:59
@iridium:faui2k11.deiridiumOne of the "generators" systemd is trying to start is this one here: https://github.com/systemd/systemd/blob/main/src/fstab-generator/fstab-generator.c15:43:16
@iridium:faui2k11.deiridium That one calls canonicalize_mount_path on every mounted filesystem: https://github.com/systemd/systemd/blob/main/src/fstab-generator/fstab-generator.c#L859 15:43:47
@iridium:faui2k11.deiridium That one calls chase() on every path of a mounted FS (one of them being an NFS mount in my case): https://github.com/systemd/systemd/blob/main/src/fstab-generator/fstab-generator.c#L871 15:44:18
@iridium:faui2k11.deiridium Now, that one will call fstat() on the filesystem mount path (ultimately...): https://github.com/systemd/systemd/blob/main/src/basic/chase.c#L401 15:45:27
@iridium:faui2k11.deiridium Now, when this code is running is in the middle of the switch-to-configuration run, which means: NetworkManager is stopped, and the system currently doesn't have any network. Accesses to NFS shared will just... hang (indefinitely). 15:46:12
@iridium:faui2k11.deiridiumThus, the fstab generator will hang (indefinitely)15:46:31
@iridium:faui2k11.deiridium https://github.com/systemd/systemd/blob/main/src/core/manager.c#L4272 this one also calls waitpid() internally - with some timeout, that timeout being a lot larger than the timeout in switch-to-configuration. So it first fails on the console and then spits out an error message in the kernel ringbuffer 2min later or so 15:51:11
@iridium:faui2k11.deiridiumNow, the interesting question is if there's any other code that would access mounted FSes during restart... But that definitely seems to be one of them.15:52:17
@grimmauld:grimmauld.deGrimmauld (moving to @grimmauld:grapevine.grimmauld.de)
In reply to @iridium:faui2k11.de
Now, the interesting question is if there's any other code that would access mounted FSes during restart... But that definitely seems to be one of them.

The fsck services tend to access file systems too, and I did have issues with those hanging too. But that is unrelated, was failed hardening attempts.

Depending on your setup, pam mounts might try to access file systems too - likely not a running session, but if you have unfortunate timing on a login using pam (e.g. ssh) then uhh that might explode? This might especially run into similar issues on an weird ldap based system where users have their home directories essentially as network drives

23:22:10
@grimmauld:grimmauld.deGrimmauld (moving to @grimmauld:grapevine.grimmauld.de)What I find surprising: by your findings, this is basically just systemd+unavailable file systems, how is this not a known bug upstream??23:23:55
27 Jan 2025
@brisingr05:matrix.org@brisingr05:matrix.org joined the room.02:51:09
@iridium:faui2k11.deiridium Yes, some puzzle piece is missing still I think... I also remember once just stopping NetworkManager and trying out systemd daemon-reexec, which worked. 07:44:33
29 Jan 2025
@matthewcroughan:defenestrate.itmatthewcroughan changed their display name from matthewcroughan to matthewcroughan (already in Brussels).13:28:34
@glelong:matrix.orgglelong joined the room.14:56:45
@glelong:matrix.orgglelongI cannot find clear information online on status of boot counting integration, does someone know the current status ? 14:58:26
@rvdp:infosec.exchangeRamses 🇵🇸AFAIK, there was a PR that got merged but it introduced some issues, because our boot entries have user-controlled identifiers in them (specialisation names) and that broke some assumptions of the code that parsed them. So the PR was reverted. I think there are ideas on how to introduce it again without hitting that issue, but no one actually implemented it yet16:16:08

Show newer messages


Back to Room ListRoom Version: 6