On Sat, May 16, 2009 at 10:57:12AM +0200, Marco d'Itri wrote:
Hello,

> On May 16, Rafa?? Kupka <kup...@kupson.fdns.net> wrote:
> 
> > I have following idea to solve that problem. Please check if it's good
> > solution.
> Maybe, but does debootstrap actually use policy-rc.d?

No, it uses fake start-stop-daemon. But there are other tools (xen-tools
for example) that expects /usr/sbin/policy-rc.d to stop all daemon
execution in debian system. Most of the times chroot(2) check will
trigger, so that's not a problem.

Additional call to policy-rc.d makes postinst script more fail-safe in
my opinion. That's all.

As I see Debian Policy Manual, section 9.3.3 strongly suggests using
invoke-rc.d in postinst scripts. Looks like all packages should obey
policy-rc.d. In ideal situation one policy-rc.d script will prevent all
daemons starts, no more fake start-stop-daemon, /etc/udev/disabled,
[ -d /debootstrap ] or similar tricks.

Regards,
Kupson



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to