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.
This commit is contained in:
parent
78499202b6
commit
6c52ef8255
1 changed files with 2 additions and 0 deletions
|
@ -78,6 +78,8 @@ copy_configuration()
|
||||||
rootfs=$2
|
rootfs=$2
|
||||||
name=$3
|
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
|
# if there is exactly one veth network entry, make sure it has an
|
||||||
# associated hwaddr.
|
# associated hwaddr.
|
||||||
nics=`grep -e '^lxc\.network\.type[ \t]*=[ \t]*veth' $path/config | wc -l`
|
nics=`grep -e '^lxc\.network\.type[ \t]*=[ \t]*veth' $path/config | wc -l`
|
||||||
|
|
Loading…
Reference in a new issue