From: Matthijs Kooijman Date: Wed, 29 Feb 2012 13:12:03 +0000 (+0100) Subject: lxc: Bindmount /etc/skel in all containers. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;ds=sidebyside;h=9c0d6e2eecd92a86d9cda9d6f501e28174a98add;p=matthijs%2Fservers%2Ftika.git lxc: Bindmount /etc/skel in all containers. --- diff --git a/var/lib/lxc/ldap/config b/var/lib/lxc/ldap/config index afd7155..de39d44 100644 --- a/var/lib/lxc/ldap/config +++ b/var/lib/lxc/ldap/config @@ -55,6 +55,7 @@ lxc.mount.entry=proc proc proc nodev,noexec,nosuid 0 0 lxc.mount.entry=sysfs sys sysfs defaults 0 0 lxc.mount.entry=/data/db/ldap data/db/ldap none defaults,bind 0 0 lxc.mount.entry=/data/users data/users none defaults,bind 0 0 +lxc.mount.entry=/etc/skel etc/skel none defaults,bind,ro 0 0 # Disallow module (un)loading lxc.cap.drop = sys_module diff --git a/var/lib/lxc/template/config b/var/lib/lxc/template/config index e7aca33..c891c66 100644 --- a/var/lib/lxc/template/config +++ b/var/lib/lxc/template/config @@ -50,10 +50,11 @@ lxc.cgroup.devices.allow = c 5:2 rwm lxc.cgroup.devices.allow = c 254:0 rwm # mounts (note that the second item in each list is the mount point, relative -# to the rootfs) + to the rootfs) lxc.mount.entry=proc proc proc nodev,noexec,nosuid 0 0 lxc.mount.entry=sysfs sys sysfs defaults 0 0 lxc.mount.entry=/data/users data/users none defaults,bind 0 0 +lxc.mount.entry=/etc/skel etc/skel none defaults,bind,ro 0 0 # Disallow module (un)loading lxc.cap.drop = sys_module