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`