| 11 Apr 2022 |
@janne.hess:helsinki-systems.de | whoa, this is great! | 10:03:36 |
@janne.hess:helsinki-systems.de | using systemd-ask-passworD? | 10:03:45 |
@janne.hess:helsinki-systems.de | * using systemd-ask-password? | 10:03:47 |
@elvishjerricco:matrix.org | Yep | 10:03:49 |
@janne.hess:helsinki-systems.de | oh wow | 10:03:54 |
@elvishjerricco:matrix.org | Good thing I added systemd-ask-password stuff to ZFS for stage 2 like a year ago | 10:04:03 |
@elvishjerricco:matrix.org | it translated to systemd-initrd automatically :P | 10:04:12 |
@janne.hess:helsinki-systems.de | btw, have you figured out how to get password reuse to work? | 10:04:29 |
@elvishjerricco:matrix.org | Nope | 10:04:36 |
@elvishjerricco:matrix.org | Haven't even tried | 10:04:42 |
@janne.hess:helsinki-systems.de | I found some solutions but they all seemed a tad bit illegal | 10:04:52 |
@elvishjerricco:matrix.org | illegal? | 10:04:58 |
@janne.hess:helsinki-systems.de | "just take this script from this random repo" | 10:05:08 |
@janne.hess:helsinki-systems.de | "just use this RPM" | 10:05:16 |
@elvishjerricco:matrix.org | oh | 10:05:18 |
@elvishjerricco:matrix.org | huh | 10:05:22 |
@elvishjerricco:matrix.org | In man systemd-ask-password I see --accept-cached | 10:06:01 |
@elvishjerricco:matrix.org | Seems relevant | 10:06:11 |
@janne.hess:helsinki-systems.de | yeah it probably is but at least in the cryptsetup case I'm not calling systemd-ask-password myself | 10:09:13 |
@elvishjerricco:matrix.org | Yea we'd have to add some override shenanigans | 10:09:31 |
@elvishjerricco:matrix.org | I'm really loving having the systemd nixos options in stage 1. Supporting ZFS was just a matter of moving one block of code to a higher scope and adding like 12 lines to zfs.nix | 10:13:15 |
@janne.hess:helsinki-systems.de | yeah, as if having systemd twice is better than a long bash script and a systemd :P | 10:13:52 |
@janne.hess:helsinki-systems.de | pushed https://github.com/NixOS/nixpkgs/pull/167168 again - now handover is working without hacks and without patching systemd | 10:14:33 |
@elvishjerricco:matrix.org | Ooh that's very nice | 10:16:53 |
@elvishjerricco:matrix.org | Janne Heß: Btw, what is the purpose of the --make-private? | 10:20:50 |
@janne.hess:helsinki-systems.de | that was needed to move the mounts below the mountpoint, but I don't think it's really needed anymore | 10:21:11 |
@janne.hess:helsinki-systems.de | yeah it works without, I pushed again | 10:27:26 |
@elvishjerricco:matrix.org | Uhh. I wanted to see what happens if I put the password in wrong
[ OK ] Reached target Switch Root.
Starting Switch Root...
[ !! ] Failed to execute /sbin/init
sh-5.1#
| 10:35:39 |
@elvishjerricco:matrix.org | I guess we don't handle failure very gracefully yet :P | 10:35:49 |
@elvishjerricco:matrix.org | (this was on the latest version of the handover branch, with the udev branch and my zfs thing merged in) | 10:36:14 |