Lines Matching refs:rootfs
38 rootfs=$1
41 $rootfs/var/empty/sshd \
42 $rootfs/var/lib/empty/sshd \
43 $rootfs/etc/init.d \
44 $rootfs/etc/rc.d \
45 $rootfs/etc/ssh \
46 $rootfs/etc/sysconfig/network-scripts \
47 $rootfs/dev/shm \
48 $rootfs/run/sshd \
49 $rootfs/proc \
50 $rootfs/sys \
51 $rootfs/bin \
52 $rootfs/sbin \
53 $rootfs/usr \
54 $rootfs/tmp \
55 $rootfs/home \
56 $rootfs/root \
57 $rootfs/lib \
58 $rootfs/lib64"
65 ln -s /run $rootfs/var/run
75 rootfs=$1
77 cat <<EOF > $rootfs/etc/passwd
82 cat <<EOF > $rootfs/etc/group
87 ssh-keygen -t rsa -N "" -f $rootfs/etc/ssh/ssh_host_rsa_key
88 ssh-keygen -t dsa -N "" -f $rootfs/etc/ssh/ssh_host_dsa_key
91 cat <<EOF > $rootfs/etc/ssh/sshd_config
111 root_u_path="$rootfs/$u_path"
114 chown -R 0:0 "$rootfs/$u_path"
115 chmod 700 "$rootfs/$u_path"
116 echo "Inserted SSH public key from $auth_key into $rootfs/$u_path"
125 rootfs=$2
130 grep -q "^lxc.rootfs" $path/config 2>/dev/null || echo "lxc.rootfs = $rootfs" >> $path/config
165 grep -q "^lxc.network.ipv4" $path/config || touch $rootfs/run-dhcp
177 $1 -h|--help -p|--path=<path> [--rootfs=<path>]
194 options=$(getopt -o hp:n:S: -l help,rootfs:,path:,name:,auth-key: -- "$@")
206 --rootfs) rootfs=$2; shift 2;;
250 # detect rootfs
252 if [ -z "$rootfs" ]; then
253 if grep -q '^lxc.rootfs' $config 2>/dev/null ; then
254 rootfs=$(awk -F= '/^lxc.rootfs =/{ print $2 }' $config)
256 rootfs=$path/rootfs
260 install_sshd $rootfs
262 echo "failed to install sshd's rootfs"
266 configure_sshd $rootfs
272 copy_configuration $path $rootfs $name