Quoting Papp Tamás (tom...@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? ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users