From: Matthijs Kooijman Date: Wed, 17 Aug 2011 11:53:40 +0000 (+0200) Subject: lxc: Make mount entries relative in template container config. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=5bce605ad88050dd17cb07bb91c31fec3de68abd;p=matthijs%2Fservers%2Ftika.git lxc: Make mount entries relative in template container config. Turns out lxc supports specifiying relative paths within its mount entries, preventing duplicating the rootfs path. --- diff --git a/var/lib/lxc/template/config b/var/lib/lxc/template/config index 315bbb4..aaaae21 100644 --- a/var/lib/lxc/template/config +++ b/var/lib/lxc/template/config @@ -49,6 +49,7 @@ lxc.cgroup.devices.allow = c 5:2 rwm # rtc lxc.cgroup.devices.allow = c 254:0 rwm -# mounts point -lxc.mount.entry=proc /var/lib/lxc/template/rootfs/proc proc nodev,noexec,nosuid 0 0 -lxc.mount.entry=sysfs /var/lib/lxc/template/rootfs/sys sysfs defaults 0 0 +# mounts (note that the second item in each list is the mount point, relative +# to the rootfs) +lxc.mount.entry=proc proc proc nodev,noexec,nosuid 0 0 +lxc.mount.entry=sysfs sys sysfs defaults 0 0