Lines Matching refs:config
207 config=$3
237 # default config. Number should match lxc.tty
389 nics=$(grep -ce '^lxc\.network\.type[ \t]*=[ \t]*veth' "$path/config")
391 grep -q "^lxc.network.hwaddr" "$path/config" || sed -i -e "/^lxc\.network\.type[ \t]*=[ \t]*veth/a lxc.network.hwaddr = 00:16:3e:$(openssl rand -hex 3| sed 's/\(..\)/\1:/g; s/.$//')" "$path/config"
395 echo "" >> "$path/config"
396 echo "# Common configuration" >> "$path/config"
398 echo "lxc.include = ${LXC_TEMPLATE_CONFIG}/debian.common.conf" >> "$path/config"
401 echo "lxc.include = ${LXC_TEMPLATE_CONFIG}/debian.${release}.conf" >> "$path/config"
404 ## Add the container-specific config
405 echo "" >> "$path/config"
406 echo "# Container specific configuration" >> "$path/config"
407 grep -q "^lxc.rootfs" "$path/config" 2> /dev/null || echo "lxc.rootfs = $rootfs" >> "$path/config"
409 cat <<EOF >> $path/config
504 -p, --path=PATH directory where config and rootfs of this VM will be kept
632 config="$path/config"
634 if grep -q '^lxc.rootfs' "$config" 2> /dev/null ; then
635 rootfs=$(awk -F= '/^lxc.rootfs[ \t]+=/{ print $2 }' "$config")
642 if grep -q '^lxc.tty' "$config" 2> /dev/null ; then
643 num_tty=$(awk -F= '/^lxc.tty[ \t]+=/{ print $2 }' "$config")
666 configure_debian_systemd "$path" "$rootfs" "$config" $num_tty