Bug#1093002: rng-tools-debian: systemd service fails instead of skipping
Sven Geuer
sge at debian.org
Wed Jan 15 23:12:32 GMT 2025
On Wed, 2025-01-15 at 20:28 +0100, Thorsten Glaser wrote:
> On Wed, 15 Jan 2025, Sven Geuer wrote:
>
> > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504044#162
>
> > Applying ExecCondition to me seems the most reasonable solution to this
> > bug.
>
> Can the script behind ExecCondition pass variables to the script
> behind ExecStart or, even better, the unit itself so we can then
> use $HRNGDEVICE and $RNGDOPTIONS there?
Found no suitable way to achieve this. One can write a file to hold the
variables and their values when checking the conditions, and read it
back when actually starting the service, but this seems a clunky
approach to me.
>
> If not, I’d lean towards one (which?) of the errorlevel-using ones,
> because otherwise we’d have to run the detection code twice.
Not sure what you mean by 'one of the errorlevel-using ones'. Please
explain your idea in more details.
My current solution indeed needs to run the detection code twice.
>
> > I believe the service should get skipped per ExecCondition also in this
> > case (no random device found/available).
>
> OK.
>
> bye,
> //mirabilos
Sven
--
GPG Fingerprint
3DF5 E8AA 43FC 9FDF D086 F195 ADF5 0EDA F8AD D585
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 854 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20250116/19e1d21b/attachment-0001.sig>
More information about the Pkg-systemd-maintainers
mailing list