Lines Matching refs:config

251         RES=`apt-config shell APT_PROXY Acquire::http::Proxy`
436 realrootfs=$(dirname $config)/rootfs
506 nics=`grep -e '^lxc\.network\.type[ \t]*=[ \t]*veth' $path/config | wc -l`
508 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
512 ## Relocate all the network config entries
513 sed -i -e "/lxc.network/{w ${path}/config-network" -e "d}" $path/config
515 ## Relocate any other config entries
516 sed -i -e "/lxc./{w ${path}/config-auto" -e "d}" $path/config
519 echo "" >> $path/config
520 echo "# Common configuration" >> $path/config
522 echo "lxc.include = ${LXC_TEMPLATE_CONFIG}/ubuntu.common.conf" >> $path/config
525 echo "lxc.include = ${LXC_TEMPLATE_CONFIG}/ubuntu.${release}.conf" >> $path/config
528 ## Add the container-specific config
529 echo "" >> $path/config
530 echo "# Container specific configuration" >> $path/config
531 [ -e "$path/config-auto" ] && cat $path/config-auto >> $path/config && rm $path/config-auto
532 grep -q "^lxc.rootfs" $path/config 2>/dev/null || echo "lxc.rootfs = $rootfs" >> $path/config
533 cat <<EOF >> $path/config
538 ## Re-add the previously removed network config
539 echo "" >> $path/config
540 echo "# Network configuration" >> $path/config
541 cat $path/config-network >> $path/config
542 rm $path/config-network
662 echo "lxc.mount.entry = $h $h2 none bind 0 0" >> $path/config
809 config="$path/config"
812 if grep -q '^lxc.rootfs' $config 2>/dev/null ; then
813 rootfs=$(awk -F= '/^lxc.rootfs =/{ print $2 }' $config)