From 6c52ef82553b7bdf2af7f2320cfa1a5b8276cb85 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Fri, 12 Jul 2013 01:29:10 -0300 Subject: [PATCH] Ensure container's rootfs is set on config file Makes our lives easier as we are able to just run a `lxc-start -n CONTAINER` to check how things are doing without having to go through vagrant. --- boxes/common/lxc-template | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boxes/common/lxc-template b/boxes/common/lxc-template index cf44ee3..9e53be4 100755 --- a/boxes/common/lxc-template +++ b/boxes/common/lxc-template @@ -78,6 +78,8 @@ copy_configuration() rootfs=$2 name=$3 + grep -q "^lxc.rootfs" $path/config 2>/dev/null || echo "lxc.rootfs = $rootfs" >> $path/config + # if there is exactly one veth network entry, make sure it has an # associated hwaddr. nics=`grep -e '^lxc\.network\.type[ \t]*=[ \t]*veth' $path/config | wc -l`