!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

82 Members
systemd in NixOs's stage 1, replacing the current bash tooling https://github.com/NixOS/nixpkgs/projects/5126 Servers

Load older messages


SenderMessageTime
24 Apr 2023
@oddlama:matrix.orgoddlamaNvm you beat me to it15:20:33
@oddlama:matrix.orgoddlamaI guess I could just manually start the things I want to debug from the emergency shell then15:21:34
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgyea, rescue or emergency mode in initrd will start very nearly nothing15:22:19
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgit won't even try mounting /sysroot and friends because those go under initrd-fs.target instead of local-fs.target15:22:42
@elvishjerricco:matrix.org@elvishjerricco:matrix.org * rescue won't even try mounting /sysroot and friends because those go under initrd-fs.target instead of local-fs.target15:22:56
@elvishjerricco:matrix.org@elvishjerricco:matrix.org but btw a very convenient way to tell it "please just boot now" is systemctl default 15:23:39
@oddlama:matrix.orgoddlamahmm emergency is so early that my usb keyboard is not ininitialized 🫠15:24:34
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgah, yea that would be a reason to use rescue15:24:45
@lily:lily.flowers@lily:lily.flowers
In reply to @elvishjerricco:matrix.org
the earliest possible shell would be rd.systemd.unit=emergency.target, since emergency mode literally only starts a shell by default
I've had emergency.target do weird things, but I forget what exactly at the moment. When I want a shell that early I use emergency.service
15:24:47
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgget your kernel modules loaded15:24:48
@elvishjerricco:matrix.org@elvishjerricco:matrix.org yea emergency mode really isn't meant to be manually targeted. It's really meant to be transitioned too in the event of boot failure 15:25:34
@elvishjerricco:matrix.org@elvishjerricco:matrix.org * yea emergency mode really isn't meant to be manually targeted. It's really meant to be transitioned to in the event of boot failure 15:25:44
@oddlama:matrix.orgoddlamathat makes sense15:26:10
@oddlama:matrix.orgoddlamais there a wiki page yet to collect some of this stuff?15:27:04
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgnot that I know of15:27:14
@oddlama:matrix.orgoddlamaRescue works fine :)15:30:55
@oddlama:matrix.orgoddlamaNot sure why my sshd doesn't come up, systemd says it's started and exited, but there are no journal messages about any of it :/15:31:55
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgThere's no reason that would come up on its own; you started it manually?15:32:48
@oddlama:matrix.orgoddlama I just used boot.initrd.networking.ssh to configure it, and it is seemingly started before my zfs is unlocked 15:33:44
@oddlama:matrix.orgoddlamathe rescue shell comes after unlocking15:34:04
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgwait wut15:34:41
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgoh15:34:49
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgare you using zfs?15:34:56
@oddlama:matrix.orgoddlamayep15:35:10
@elvishjerricco:matrix.org@elvishjerricco:matrix.orghttps://github.com/NixOS/nixpkgs/pull/22720815:35:18
@elvishjerricco:matrix.org@elvishjerricco:matrix.org zfs-import-${pool}.service is in local-fs.target, which is incorrect in initrd 15:35:46
@elvishjerricco:matrix.org@elvishjerricco:matrix.org but that incorrectness does result in it being pulled in by rescue.target 15:36:04
@oddlama:matrix.orgoddlamaI see. It's probably not correct but in my case it shouldn't be a problem either15:36:47
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgthat doesn't explain why sshd is starting though15:36:50
@oddlama:matrix.orgoddlamaWait I have to add some utils to the initrd before continuing, I can't even ping :P15:37:23

Show newer messages


Back to Room ListRoom Version: 6