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
signature.asc
Description: This is a digitally signed message part