]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Don't try to add host user's groups in container
authorSerge E. Hallyn <serge@hallyn.com>
Wed, 27 Jul 2011 14:34:58 +0000 (16:34 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Wed, 27 Jul 2011 14:34:58 +0000 (16:34 +0200)
When '-b user' is specified to lxc-ubuntu container creation template, do
not automatically add all the groups of which user is a member on the host,
to user's groups in the container.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
templates/lxc-ubuntu.in

index e450dae314e97f71ad7018e7ebc2962e054be628..0b59f26f7b244215d9e31ad98248a294524a3f2e 100644 (file)
@@ -343,9 +343,6 @@ do_bindhome()
     fi
     shad=`getent shadow $user`
     echo $shad >> $rootfs/etc/shadow
-    for g in `groups $user | cut -d: -f 2-`; do
-        chroot $rootfs adduser $user $g
-    done
 }
 
 clean()