<div dir="ltr">Systemd broke a use case that people were actively using, and cryptsetup comes with scripts to support.<div><br></div><div>There were complaints about this four years ago, you rejected a patch that would have resolved it, and it still has not been addressed.</div><div><br></div><div>If you won't merge the patch that addresses this, can you explain what needs to be done to support the "use some administrator defined program to supply the password" use case that you will merge? Depending on the scope, I may be able to write the code. Is there any way this can be done with a wrapper so that people don't have to maintain two versions of their programs?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 19, 2016 at 2:27 PM, Lennart Poettering <span dir="ltr"><<a href="mailto:lennart@poettering.net" target="_blank">lennart@poettering.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, 19.10.16 11:20, Ryan Castellucci (<a href="mailto:ryan.castellucci%2Bsystemd-devel@gmail.com">ryan.castellucci+systemd-<wbr>devel@gmail.com</a>) wrote:<br>
<br>
> What will it take to get keyscript support in systemd-cryptsetup fixed?<br>
><br>
> This is a nasty regression for people who were using that functionality,<br>
> and it necessitating some pretty ugly workarounds. I understand from<br>
> previous threads that there's an aversion to restoring this without some<br>
> more generic key handling functionality. I disagree with this stance, it's<br>
> a case of "perfect is the enemy of good" - keyscripts work well enough, are<br>
> easy to work with, and seem as though they should be easy to implement (I<br>
> think I even saw a patch).<br>
><br>
> Under older initscripts, I was able to write a very small shell script or<br>
> trivial statically compiled C program that does whatever custom<br>
> functionality I need to get a password for LUKS and dump it on STDOUT. I<br>
> don't want to have to rewrite my existing scripts or deal with anything<br>
> more complicated than this.<br>
><br>
> I mainly use non-interactive keyscripts, so I've been able to re-implement<br>
> the automapping of my encrypted volumes by some ugly udev hackery, but I<br>
> have other stuff I've used in the past (for example, requiring a quorum of<br>
> admins to enter passwords) for which this doesn't work.<br>
<br>
</span>It should be possibly to write a password agent that does what<br>
keyscripts do, without adding direct keyscript support to<br>
systemd-crpytsetup itself.<br>
<br>
systemd is not supposed to be this conglomerate of pieces glued<br>
together with scripts here and scripts there. That makes me very<br>
conservative in adding a concept such as "keyscripts" to our tools,<br>
natively. Sorry.<br>
<br>
It's not that we didn't have an API for that, there's just some glue<br>
missing to make it work for your use case, but it shouldn't be too<br>
hard to write.<br>
<br>
Sorry,<br>
<br>
Lennart<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Lennart Poettering, Red Hat<br>
</font></span></blockquote></div><br></div>