| 23 Jan 2025 |
@elvishjerricco:matrix.org | there's a draft PR for it | 03:02:21 |
matthewcroughan | I also found that on asahi the shutdown -H feature doesn't work | 03:03:12 |
matthewcroughan | nor does systemctl halt, it just reboots | 03:03:20 |
matthewcroughan | the SMC on macs is BS | 03:03:27 |
matthewcroughan | github.com/AsahiLinux/linux/blob/asahi/drivers/power/reset/macsmc-reboot.c#L204-L208 | 03:03:46 |
| 24 Jan 2025 |
| rntpts joined the room. | 17:30:39 |
| bumperboat joined the room. | 20:04:08 |
bumperboat | 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_ | 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 changed their profile picture. | 10:22:06 |
| 26 Jan 2025 |
iridium | 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 | Or let's say one reason, not sure if it's the only one | 15:41:58 |
iridium | https://github.com/systemd/systemd/blob/main/src/core/manager.c#L4272-L4279 | 15:42:51 |
iridium | That's the part that's failing | 15:42:59 |
iridium | One of the "generators" systemd is trying to start is this one here: https://github.com/systemd/systemd/blob/main/src/fstab-generator/fstab-generator.c | 15:43:16 |
iridium | 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 | 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 | 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 | 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 | Thus, the fstab generator will hang (indefinitely) | 15:46:31 |
iridium | 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 | 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. | 15:52:17 |
Grimmauld (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 (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 joined the room. | 02:51:09 |
iridium | 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 changed their display name from matthewcroughan to matthewcroughan (already in Brussels). | 13:28:34 |
| glelong joined the room. | 14:56:45 |
glelong | I cannot find clear information online on status of boot counting integration, does someone know the current status ? | 14:58:26 |
Ramses 🇵🇸 | 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 yet | 16:16:08 |