From 5bce605ad88050dd17cb07bb91c31fec3de68abd Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Wed, 17 Aug 2011 13:53:40 +0200 Subject: [PATCH] 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. --- var/lib/lxc/template/config | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.30.2