On 5 Sep 2023 17:53 +0200, from steffen(a)sdaoden.eu (Steffen Nurpmeso):
Unfortunately cryptsetup is needed even though, i
think, the
kernel has anything needed; you just cannot access it. cryptsetup
is only needed for "$cs open $PART_ROOT p_root --key-file -".
Of course i am no real Linux expert but only a do-it-yourself guy.
If your need is restricted to a highly specific use case and you are
trying to keep it as small as possible, then it should be possible to
write a custom wrapper around whatever libcryptsetup functionality you
need and avoid the extra code that you get with cryptsetup proper.
--
Michael Kjörling 🔗
https://michael.kjorling.se
“Remember when, on the Internet, nobody cared that you were a dog?”