Lines Matching refs:rootfs
52 rootfs=$2
92 grep -q "^lxc.rootfs" $path/config 2>/dev/null || echo "lxc.rootfs = $rootfs" >> $path/config
106 cat /etc/timezone > $rootfs/etc/timezone
107 chroot $rootfs dpkg-reconfigure -f noninteractive tzdata
110 echo $ZONE > $rootfs/etc/timezone
111 chroot $rootfs dpkg-reconfigure -f noninteractive tzdata
117 # I'm afraid of doing rm -rf $rootfs/dev/shm, in case it did
121 if [ ! -L $rootfs/dev/shm ] && [ -e $rootfs/dev/shm ]; then
122 rmdir $rootfs/dev/shm 2>/dev/null || mv $rootfs/dev/shm $rootfs/dev/shm.bak
123 ln -s /run/shm $rootfs/dev/shm
136 [ --rootfs <path> ]: Path in which rootfs will be placed
149 options=$(getopt -o a:hp:r:n:Fi:CLS:T:ds:u: -l arch:,help,rootfs:,path:,release:,name:,flush-cache,hostid:,auth-key:,cloud,no_locales,tarball:,debug,stream:,userdata:,vendordata:,mapped-uid:,mapped-gid: -- "$@")
212 --rootfs) rootfs=$2; shift 2;;
263 # detect rootfs
265 if [ -z "$rootfs" ]; then
266 if grep -q '^lxc.rootfs' $config 2>/dev/null ; then
267 rootfs=$(awk -F= '/^lxc.rootfs =/{ print $2 }' $config)
269 rootfs=$path/rootfs
331 echo "Extracting container rootfs"
332 mkdir -p $rootfs
333 cd $rootfs
335 unsquashfs -n -f -d "$rootfs" "$cache/$filename"
339 mkdir -p $rootfs/dev/pts/
356 copy_configuration $path $rootfs $name $arch $release
358 "$CLONE_HOOK_FN" "${cloneargs[@]}" "$rootfs"