!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

607 Members
NixOS ❤️ systemd170 Servers

Load older messages


SenderMessageTime
23 Jan 2025
@elvishjerricco:matrix.orgElvishJerriccoand we should not get into it right now :P03:01:05
@matthewcroughan:defenestrate.itmatthewcroughan if you used that, you could soft-reboot into an "upgradable" state, and then perform your nixos-rebuild, and then switch back 03:01:28
@matthewcroughan:defenestrate.itmatthewcroughanhaving a rw specialisation03:01:41
@elvishjerricco:matrix.orgElvishJerricco like I said, it's complicated. More complicated than that 03:01:51
@matthewcroughan:defenestrate.itmatthewcroughanswitch into the rw specialisation with soft-reboot, then soft-reboot into the ro generation03:01:55
@matthewcroughan:defenestrate.itmatthewcroughan hehe okay, I will play with that on my own since it seems fun 03:02:06
@matthewcroughan:defenestrate.itmatthewcroughan
[Unit]
Description=My Surviving Service
SurviveFinalKillSignal=yes
03:02:19
@matthewcroughan:defenestrate.itmatthewcroughanso much death 03:02:20
@elvishjerricco:matrix.orgElvishJerriccothere'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

Show newer messages


Back to Room ListRoom Version: 6