Lines Matching refs:config
521 configfile=$(relevant_file config)
528 ## Extract all the network config entries
529 sed -i -e "/lxc.network/{w ${LXC_PATH}/config-network" -e "d}" \
530 ${LXC_PATH}/config
532 ## Extract any other config entry
533 sed -i -e "/lxc./{w ${LXC_PATH}/config-auto" -e "d}" ${LXC_PATH}/config
536 echo "" >> ${LXC_PATH}/config
537 echo "# Distribution configuration" >> ${LXC_PATH}/config
538 cat $configfile >> ${LXC_PATH}/config
540 ## Add the container-specific config
541 echo "" >> ${LXC_PATH}/config
542 echo "# Container specific configuration" >> ${LXC_PATH}/config
543 if [ -e "${LXC_PATH}/config-auto" ]; then
544 cat ${LXC_PATH}/config-auto >> ${LXC_PATH}/config
545 rm ${LXC_PATH}/config-auto
548 echo "lxc.mount = ${LXC_PATH}/fstab" >> ${LXC_PATH}/config
550 echo "lxc.utsname = ${LXC_NAME}" >> ${LXC_PATH}/config
552 ## Re-add the previously removed network config
553 if [ -e "${LXC_PATH}/config-network" ]; then
554 echo "" >> ${LXC_PATH}/config
555 echo "# Network configuration" >> ${LXC_PATH}/config
556 cat ${LXC_PATH}/config-network >> ${LXC_PATH}/config
557 rm ${LXC_PATH}/config-network
560 TEMPLATE_FILES="${LXC_PATH}/config"
594 chown $LXC_MAPPED_UID $LXC_PATH/config $LXC_PATH/fstab >/dev/null 2>&1 || true
597 chgrp $LXC_MAPPED_GID $LXC_PATH/config $LXC_PATH/fstab >/dev/null 2>&1 || true