[lxc-devel] possible lxc-attach problem

Stéphane Graber stgraber at ubuntu.com
Sat Mar 1 00:15:57 UTC 2014


On Fri, Feb 28, 2014 at 06:11:25PM -0600, Serge Hallyn wrote:
> Quoting S.Çağlar Onur (caglar at 10ur.org):
> > On Fri, Feb 28, 2014 at 12:20 PM, Serge Hallyn <serge.hallyn at ubuntu.com> wrote:
> > > Quoting Serge Hallyn (serge.hallyn at ubuntu.com):
> > >> It seems to me these are the right things to do, but they'll take
> > >> some experimentation with the many possible hosts:
> > >>
> > >> 1. If / is not shared, do nothing
> > >> 2. if / is shared, and is not the ramfs, then remount MS_SLAVE|MS_REC
> > >> 3. if / is ramfs, then do the chroot_into_slave
> > >
> > > The following patch seems to work for me on arch.  It should
> > > also work on ubuntu as it makes no changes in the !shared
> > > path.  In order to fill in the ramfs root detection, could
> > > someone (Stéphane?) send the output of /proc/self/mountinfo
> > > on an android system?
> > 
> > Yep, it looks much better on Fedora 20 as well
> > (http://paste.ubuntu.com/7013380/)
> 
> Does lxc-attach also work with this patch on f20?

Given Caglar's example is under lxc-attach, I'd think so :)

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20140228/ca334036/attachment.pgp>


More information about the lxc-devel mailing list