Re: cryptdisks(-early) initscripts, dependencies and loops
-----BEGIN PGP SIGNED MESSAGE-----
Jonas Meurer wrote:
> the problem is that loads of possible setups are possible, all
> introducing different required initscript order. either another
> initscript needs to be invoked before, or after, or between the
> cryptdisks-early and cryptdisks initscripts.
What we have here is a dependency tree of arbitrary height, with each node
requiring an invocation of cryptsetup, lvm, mdadm, nbd or pretty much
anything else. So it's clear that you can never cover all possibilites with
a finite number of init scripts that run in a sequence.
An event-based system might be able handle this, but only if it allows the
same script to be invoked multiple times, taking different actions each
Perhaps we need a little script that walks the dependency tree, and just
calls the necessary helper script for each node in turn.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
-----END PGP SIGNATURE-----