!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

579 Members
NixOS ❤️ systemd159 Servers

Load older messages


SenderMessageTime
17 Mar 2025
@antifuchs:asf.computerantifuchsok, here's a really annoying thing I don't know how to handle: when critical bootup things fail (or when prompting for my zfs unlock password), systemd kills and re-starts the password prompt every ~2-3 seconds, which makes it impossible to enter the password14:54:06
@antifuchs:asf.computerantifuchs(can baaarely type a 60-char password fast enough, plus the IPMI web console doesn't allow me to type that fast at all)14:55:41
@gdamjan:spodeli.orggdamjanalso sometimes a BIOS update can mangle the names (happened to me once)16:36:43
@antifuchs:asf.computerantifuchs yeah - I ended up using matchConfig.MACAddress in addition to a name glob, that seems to have fixed the issue 16:37:11
@antifuchs:asf.computerantifuchs(the "in addition to" was the key, otherwise child interfaces got the parent interface config which made things look right but behave extremely wrong) (:16:37:44
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgthose two shouldn't have any sort of ordering constraints against each other I don't think17:58:43
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgthat's.... odd17:58:49
@antifuchs:asf.computerantifuchsI think on the first one, I misread that ethernet card renaming thing as another18:02:48
@antifuchs:asf.computerantifuchs* I think on the first one, I misread that ethernet card renaming thing as another: now that networking is straightened out, I have managed to get the ssh server to start and unlock zfs through there18:03:15
@antifuchs:asf.computerantifuchsbut yeah, those repeating password prompts are really really annoying18:03:27
@antifuchs:asf.computerantifuchsit would even print "Login failed" while I was typing18:03:42
@elvishjerricco:matrix.org@elvishjerricco:matrix.org.... what?18:06:13
@elvishjerricco:matrix.org@elvishjerricco:matrix.orglogin failed?18:06:16
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgthat's not a thing that happens in stage 118:06:32
@antifuchs:asf.computerantifuchssorry, I'm being unclear. this is the emergency mode password prompt. Initially, that works alright: a critical unit fails, it prompts for root password, I enter it. Then I tried starting that unit again and it entered emergency mode again, this time prompting over and over18:09:39
@antifuchs:asf.computerantifuchscould this be a Restart="on-failure"; type thing? huh18:10:17
@elvishjerricco:matrix.org@elvishjerricco:matrix.org antifuchs: I'm still not quite following. What unit is failing? 18:26:39
@antifuchs:asf.computerantifuchs that was my initrd ssh server, due to that network misconfiguration on my part. The ssh server has Restart="on-failure", which is what I suspect causes the password prompt to also restart 18:27:59
@antifuchs:asf.computerantifuchs(restart without a rate limit, critically)18:28:40
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgThat doesn't sound like what ought to be happening, huh18:28:40
@antifuchs:asf.computerantifuchsyea, it's not amazing ((:18:29:10
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgwell I mean I'm trying to figure out why that would be what's happening18:30:51
@antifuchs:asf.computerantifuchsI think I still have the broken initrd on my boot menu, let me take a screenshot rq18:34:31
@elvishjerricco:matrix.org@elvishjerricco:matrix.orglike sshd failing again shouldn't cause emergency mode to restart18:34:41
@antifuchs:asf.computerantifuchssorry, "ssh server" is a shorthand for https://github.com/boinkor-net/hoopsnake; it's me on my very own bullshit. service config is this: https://github.com/boinkor-net/hoopsnake/blob/main/nixos/module.nix#L19118:35:56
@antifuchs:asf.computerantifuchs* sorry, "ssh server" is shorthand for https://github.com/boinkor-net/hoopsnake; it's me on my very own bullshit. service config is this: https://github.com/boinkor-net/hoopsnake/blob/main/nixos/module.nix#L19118:36:50
@antifuchs:asf.computerantifuchsrebooting now to capture that behavior18:39:01
@emilazy:matrix.orgemilyhow do you get your tailscale keys in initrd btw?18:42:20
@antifuchs:asf.computerantifuchsusing tpm-encrypted systemd credentials (:18:43:16
@antifuchs:asf.computerantifuchsLoadCredential is really pretty sweet18:43:25

Show newer messages


Back to Room ListRoom Version: 6