Lines Matching refs:LXC_PATH
53 LXC_PATH=
252 --path) LXC_PATH=$2; shift 2;;
278 if [ -z "$LXC_NAME" ] || [ -z "$LXC_PATH" ] || [ -z "$LXC_ROOTFS" ]; then
529 sed -i -e "/lxc.network/{w ${LXC_PATH}/config-network" -e "d}" \
530 ${LXC_PATH}/config
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
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
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"
564 cp ${fstab} ${LXC_PATH}/fstab
565 TEMPLATE_FILES="$TEMPLATE_FILES ${LXC_PATH}/fstab"
582 sed -i "s#LXC_PATH#$LXC_PATH#g" $file
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