!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
11 Apr 2022
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.dewhoa, this is great!10:03:36
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deusing systemd-ask-passworD?10:03:45
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de * using systemd-ask-password?10:03:47
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgYep10:03:49
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deoh wow10:03:54
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgGood thing I added systemd-ask-password stuff to ZFS for stage 2 like a year ago10:04:03
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgit translated to systemd-initrd automatically :P10:04:12
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.debtw, have you figured out how to get password reuse to work?10:04:29
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgNope10:04:36
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgHaven't even tried10:04:42
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deI found some solutions but they all seemed a tad bit illegal10:04:52
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgillegal?10:04:58
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de"just take this script from this random repo"10:05:08
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de"just use this RPM"10:05:16
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgoh10:05:18
@elvishjerricco:matrix.org@elvishjerricco:matrix.orghuh10:05:22
@elvishjerricco:matrix.org@elvishjerricco:matrix.org In man systemd-ask-password I see --accept-cached 10:06:01
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgSeems relevant10:06:11
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deyeah it probably is but at least in the cryptsetup case I'm not calling systemd-ask-password myself10:09:13
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgYea we'd have to add some override shenanigans10:09:31
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI'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.nix10:13:15
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deyeah, as if having systemd twice is better than a long bash script and a systemd :P10:13:52
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.depushed https://github.com/NixOS/nixpkgs/pull/167168 again - now handover is working without hacks and without patching systemd10:14:33
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgOoh that's very nice10:16:53
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Janne Heß: Btw, what is the purpose of the --make-private? 10:20:50
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.dethat was needed to move the mounts below the mountpoint, but I don't think it's really needed anymore10:21:11
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deyeah it works without, I pushed again10:27:26
@elvishjerricco:matrix.org@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@elvishjerricco:matrix.orgI guess we don't handle failure very gracefully yet :P10:35:49
@elvishjerricco:matrix.org@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

Show newer messages


Back to Room ListRoom Version: 6