[Pkg-sysvinit-devel] Bug#674178: /dev/shm is not set up right in chroot

Serge Hallyn serge.hallyn at canonical.com
Wed May 23 17:02:15 UTC 2012


Quoting Roger Leigh (rleigh at codelibre.net):
> On Wed, May 23, 2012 at 10:47:26AM -0500, Serge Hallyn wrote:
> > Package: sysvinit
> > Version: 2.88dsf-24
> > 
> > If you do:
> > 
> >     debootstrap sid sid
> >     chroot sid dpkg -i /var/cache/apt/acrchives/initscripts*.deb
> > 
> > you will be left with a mount on sid/run/shm
> > 
> > The related Ubuntu bug is https://bugs.launchpad.net/launchpad/+bug/974584 .
> > 
> > A debdiff proposed (but not yet pushed) to fix this in Ubuntu follows.
> 
> Could you possibly try with -25 (in experimental).  I fixed a bug with

I'm only seeing -24 right now, will re-check in a bit.

(http://packages.debian.org/experimental/sysvinit)

> /run/shm handling last night, though it was related to size
> determination rather than chroot handling it's not impossible that it's
> related.
> 
> WRT the patch, if ischroot is behaving incorrectly, then the ischroot
> utility needs updating.

Ok - as I said in the Ubuntu bug I do suspect we don't want that part
in there.  I'm not sure whether 'chroot dpkg -i *.deb' without
mounting /proc is meant to be supported.

> Working around this in an individual package
> is incorrect, unless there's a non-obvious reason I missed in this
> specific case.

No specific reason.

> Given that /run/shm should be handled identically to /run, and
> /run/lock, I think it's more important to work out why it's
> behaving differently than the other two.  I assume that the other
> two are not being mounted?

Correct.  Only /run/shm.

I'll try -25 when I see it, thanks.

-serge





More information about the Pkg-sysvinit-devel mailing list