!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

600 Members
NixOS ❤️ systemd165 Servers

Load older messages


SenderMessageTime
4 Oct 2024
@elvishjerricco:matrix.orgElvishJerriccooh01:08:30
@elvishjerricco:matrix.orgElvishJerriccono01:08:31
@elvishjerricco:matrix.orgElvishJerriccoI'm just silly01:08:33
@elvishjerricco:matrix.orgElvishJerriccoand did my test badly01:08:40
@mjm:midna.devmjmso it might still just be that?01:11:16
@elvishjerricco:matrix.orgElvishJerricco mjm: definitely was. Pushed a fix to the nixpkgs branch. Give it a try 01:14:07
@mjm:midna.devmjmokay yeah that fixed that issue, thanks! once i finish making dinner i need to try the credential thing01:36:03
@elvishjerricco:matrix.orgElvishJerricconice01:36:11
@elvishjerricco:matrix.orgElvishJerricco mjm: I'm actually really curious if that will work for you. I actually have no idea how / if it's going to delay to find the TPM to decrypt the credential 01:36:42
@elvishjerricco:matrix.orgElvishJerriccohm it might actually just... not01:38:07
@elvishjerricco:matrix.orgElvishJerriccobut I think it would fallback to password in that case01:38:18
@elvishjerricco:matrix.orgElvishJerricco(but also it would be a race condition)01:38:26
@mjm:midna.devmjmwe shall see01:38:29
@mjm:midna.devmjmno luck so far, it's falling back to prompting. i might be able to introduce dependencies to get it to wait for the tpm?02:21:57
@elvishjerricco:matrix.orgElvishJerricco
In reply to @mjm:midna.dev
no luck so far, it's falling back to prompting. i might be able to introduce dependencies to get it to wait for the tpm?

Yea, you should be able to do

boot.initrd.systemd.services."bcachefs-unlock@" = {
  overrideStrategy = "asDropin";
  after = ["tpm2.target"];
};
02:27:30
@mjm:midna.devmjmalright let me give that a shot02:27:44
@mjm:midna.devmjmi wonder why clevis doesn't need that?02:27:49
@elvishjerricco:matrix.orgElvishJerricco mjm: also how do you have the secret placed in the initrd? 02:28:07
@mjm:midna.devmjm i'm putting it in /etc/credstore.encrypted/bcachefs-sysroot-persist with boot.initrd.systemd.contents 02:28:37
@elvishjerricco:matrix.orgElvishJerricco mjm: the file needs a .mount suffix 02:29:04
@elvishjerricco:matrix.orgElvishJerricco(I should maybe not do that...)02:29:11
@mjm:midna.devmjmoh you're right, i see02:30:06
@mjm:midna.devmjm ElvishJerricco: it's failing pretty catastrophically, and I can't really tell why. emergency mode says my root account is locked, do you know what i can do to make it work? 02:41:11
@elvishjerricco:matrix.orgElvishJerricco mjm: boot.initrd.systemd.emergencyAccess. You can set it to a hashed password or true for no password. Or you can add rd.systemd.debug_shell to the kernel params to get a shell on tty9 02:42:07
@mjm:midna.devmjmoh i might have found it02:42:07
@mjm:midna.devmjmthanks, yeah i literally just found the option :)02:42:25
@mjm:midna.devmjmjust gonna set it to true for now while figuring this out02:42:58
@mjm:midna.devmjmI’m dumb, need to regenerate the credential with the right name, with the .mount suffix02:47:51
@elvishjerricco:matrix.orgElvishJerriccooh, I completely forgot the name is important when generating these things02:48:17
@elvishjerricco:matrix.orgElvishJerriccothat's slightly frustrating but I totally get why they do it, and it makes perfect sense02:48:32

Show newer messages


Back to Room ListRoom Version: 6