<div dir="ltr">It looks like my use case could be supported with a "Password Agent", and it seems that it would be possible to wrap the existing keyscript stuff (though the interface is much more complicated).<div><br></div><div>How should a password agent be started? Is there a way to disable particular password agents?<br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 19, 2016 at 3:35 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>On Wed, 19.10.16 15:28, Ryan Castellucci (<a href="mailto:ryan.castellucci%2Bsystemd-devel@gmail.com" target="_blank">ryan.castellucci+systemd-deve<wbr>l@gmail.com</a>) wrote:<br>
<br>
> Systemd broke a use case that people were actively using, and cryptsetup<br>
> comes with scripts to support.<br>
<br>
</span>Humm, the keyscript thing was a Debian-specific extension. It was<br>
never supported on systemd or any non-Debian distro. I wouldn't really<br>
call that breaking... But yeah, we don't support this scheme natively.<br>
<span><br>
> If you won't merge the patch that addresses this, can you explain what<br>
> needs to be done to support the "use some administrator defined program to<br>
> supply the password" use case that you will merge? Depending on the scope,<br>
> I may be able to write the code. Is there any way this can be done with a<br>
> wrapper so that people don't have to maintain two versions of their<br>
> programs?<br>
<br>
</span>I don't think the keyscript= concept fits into systemd, sorry. I can<br>
understand you want this, but all I can suggest is to write a bit of<br>
glue to make it possible to run keyscript= scripts via the ask<br>
password logic. It's not too hard, an the API to use is documented here:<br>
<br>
<a href="https://www.freedesktop.org/wiki/Software/systemd/PasswordAgents/" rel="noreferrer" target="_blank">https://www.freedesktop.org/wi<wbr>ki/Software/systemd/PasswordAg<wbr>ents/</a><br>
<div class="m_8932926895970529208gmail-m_-6398550950192632687HOEnZb"><div class="m_8932926895970529208gmail-m_-6398550950192632687h5"><br>
Lennart<br>
<br>
--<br>
Lennart Poettering, Red Hat<br>
</div></div></blockquote></div><br></div></div></div>