On Tue, 2013-07-30 at 16:32 +0000, Clint Adams wrote:
> On Tue, Jul 30, 2013 at 09:00:15PM +1200, Andrew Ruthven wrote:
> > Totally agree. The problem is with tools that don't run in a chroot, if
> > they are in a chroot, break horribly. Mostly they're stuff run from
> > init.d...
> 
> I think that's what /usr/sbin/policy-rc.d is for.

Sadly /usr/sbin/policy-rc.d won't fix the initscripts issue as it in is
in the packages postinst. It is all about setting up the /run symlink
and associated bits and pieces.

It takes one approach if it is in a chroot and a totally different
approach if it is a physical host.

The sysvinit postinst script also uses ischroot.

Cheers!

-- 
Andrew Ruthven
Wellington, New Zealand
At home: and...@etc.gen.nz |     linux.conf.au 2014
                           | Come swan on the Swan River
                           |    http://linux.conf.au

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to