Closed WhatAmISupposedToPutHere closed 1 month ago
Personally, this doesn't feel sound to me.
Wouldn't something like this do here?
while ! bcachefs mount -k fail "UUID=$uuid"; do
systemd-ask-password --timeout=0 --no-output --keyname="bcachefs:$uuid" "Enter passphrase:"
done
That would work, but it would require extra code in dracut to handle bcachefs specifically
Do cryptsetup or any fs tools directly call into systemd-ask-password like your PR does?
Dracut uses systemd-cryptsetup-generator, which calls into it even more directly (by linking against it and calling a function)
This would allow to supply the password via the plymouth password input. If systemd-ask-password does not exist or fails to start, falls back to the old-style password request.