[Pkg-utopia-maintainers] Bug#568954: Bug#562811: further fudging stages may only confuse things
Michael Biebl
biebl at debian.org
Tue Feb 9 04:10:20 UTC 2010
Mark Hedges wrote:
>
> On Tue, 9 Feb 2010, Michael Biebl wrote:
>
>>> To me it seems like "up" and "down" have some sort of
>>> primacy over "pre-up" and "post-down."
>> Might be. Imho I find it a bit confusing, that ifupdown does not map its
>> events/PHASES to directories of the same name, i.e.
>> PHASE:pre-up -> if-pre-up.d
>> PHASE:post-up -> if-up.d
>> PHASE:pre-down -> if-down.d
>> PHASE:post-down -> if-post-down.d
>
> I think that's the way ifupdown works, see `man 5
> interfaces` it is the phase environment variable.
> "post-up" is alias for primary entity "up" and "pre-down"
> for "down," AFAICT. I would think NM should set PHASE
> values "pre-up", "up", "down", and "post-down" since those
> are the established directory names.
I don't think you are right here.
I dropped a script in /etc/network/*.d/ which dumps the environment variables
and activated an interface using ifup/ifdown
The relevant output is:
/etc/network/if-down.d/debug
PHASE=pre-down
/etc/network/if-post-down.d/debug
PHASE=post-down
/etc/network/if-pre-up.d/debug
PHASE=pre-up
/etc/network/if-up.d/debug
PHASE=post-up
You see, there is no down resp. up PHASE for the hooks in there.
Maybe you also understand, what I mean with that the names of the hook
directories do not reflect the PHASE variable.
>
>> I'm a bit puzzled why you think that keeping down mapped
>> to pre-down is preferrable.
>
> Because it only requires changing the way one package works
> (network-manager) versus two (network-manager and ifupdown).
> The scripts installed with those directory names (which are
> useable as PHASE values) expect to run in a universal order
> regardless of whether the interface is managed by
> network-manager or spelled out in interfaces.
I guess you misunderstood what I meant.
Changing the mapping in 01ifupdown from NM's down -> post-down
does not involve any modifications to ifupdown itself.
Michael
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20100209/e24bffee/attachment-0001.pgp>
More information about the Pkg-utopia-maintainers
mailing list