On 03.03.2013 20:26, Andrew Shadura wrote:
> Hello,
> 
> On Sun, 03 Mar 2013 16:16:32 +0100
> Michael Biebl <[email protected]> wrote:
> 
>>> While installing into chroot, NetworkManager starts, which results
>>> in the machine being disconnected from the network. Please detect
>>> chroot and don't start NM.
> 
>> I don't plan to do that. Please use policy-rc.d for such a use case.
> 
> Why? If I debootstrap system, I most certainly don't need a chrooted
> Debian to control my network interfaces unless I explicitly say so.
> That'd be logical to *not* start NM or whatever else which can disrupt
> my networking. Or at least if it's finally started, my interface should
> never go down.

It doesn't make sense to add chroot detection logic to every init script
/ maintainer script when you can simply use

echo -e '#!/bin/sh\nreturn 101' > /usr/sbin/policy-rc.d
chmod +x /usr/sbin/policy-rc.d

in you chroot.

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Pkg-utopia-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-utopia-maintainers

Reply via email to