[Lxc-users] uptodate Ubuntu Lucid guests

Serge E. Hallyn serge.hallyn at canonical.com
Mon Sep 6 23:03:32 UTC 2010


Quoting Papp Tamás (tompos at martos.bme.hu):
> 
> Papp Tamás wrote, On 2010. 09. 05. 0:58:
> > 2. Some days ago there was an update to the package udev. In the 
> > postinst script there is section:
> >
> > create_devices()
> > {
> >    # in a vserver environment, mknod will fail; cf. LP: #144685
> >    if grep -q ^VxID /proc/self/status; then
> >    return
> >    fi
> >
> > What is the right grep pattern so it matches for lxc? In other words, 
> > how can I be sure, I'm in an lxc container?
> >   
> 
> Does anybody have any idea about this? I just need something in the 
> containaer which doesn't exist in a real machine.

Use /proc/$$/cgroup contents?





More information about the lxc-users mailing list