Lines Matching refs:path
103 echo "lxc.mount.entry = /dev/$dev dev/$dev none bind,optional,create=file 0 0" >> $path/config
338 path=$1
342 grep -q "^lxc.rootfs" $path/config 2>/dev/null || echo "lxc.rootfs = $rootfs" >> $path/config
343 cat <<EOF >> $path/config
366 echo "lxc.mount.entry = /$dir $dir none ro,bind 0 0" >> $path/config
369 echo "lxc.mount.entry = /sys/kernel/security sys/kernel/security none ro,bind,optional 0 0" >>$path/config
374 path=$1
377 chown $LXC_MAPPED_UID $path/config >/dev/null 2>&1
378 chown -R root $path/rootfs >/dev/null 2>&1
382 chgrp $LXC_MAPPED_GID $path/config >/dev/null 2>&1
383 chgrp -R root $path/rootfs >/dev/null 2>&1
390 $1 -h|--help -p|--path=<path> -s|--ssh={dropbear,openssh}
395 options=$(getopt -o hp:n:s: -l help,rootfs:,path:,name:,mapped-uid:,mapped-gid:,ssh: -- "$@")
406 -p|--path) path=$2; shift 2;;
422 if [ -z "$path" ]; then
423 echo "'path' parameter is required"
428 config="$path/config"
433 rootfs=$path/rootfs
449 copy_configuration $path $rootfs $name
455 remap_userns $path