From 9c0d6e2eecd92a86d9cda9d6f501e28174a98add Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Wed, 29 Feb 2012 14:12:03 +0100 Subject: [PATCH] lxc: Bindmount /etc/skel in all containers. --- var/lib/lxc/ldap/config | 1 + var/lib/lxc/template/config | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- 2.30.2