+ fi
+
+ dir="/dev/shm"
+ c="umount $rpath$dir"
+ if $c 2>&1|grep -v ': not \(mounted\|found\)$';then
+ echo $c
+ fi
+
+ test -e $rpath/dev/pts && (rmdir $rpath/dev/pts || :)
+ if ! $u;then
+ mkdir -p $rpath/dev/pts
+ fi
+ test -e $rpath/dev/shm && (rmdir $rpath/dev/shm || :)
+ if ! $u;then
+ mkdir -p $rpath/dev/shm
+ fi
+ rm -f $rpath/dev/null
+ if ! $u;then
+ mknod -m 666 $rpath/dev/null c 1 3
+ fi
+ rm -f $rpath/dev/full
+ if ! $u;then
+ mknod -m 666 $rpath/dev/full c 1 7
+ fi
+ rm -f $rpath/dev/zero
+ if ! $u;then
+ mknod -m 666 $rpath/dev/zero c 1 5
+ fi
+ rm -f $rpath/dev/random
+ if ! $u;then
+ mknod -m 666 $rpath/dev/random c 1 8
+ fi
+ rm -f $rpath/dev/urandom
+ if ! $u;then
+ mknod -m 444 $rpath/dev/urandom c 1 9
+ fi
+ rm -f $rpath/dev/tty
+ if ! $u;then
+ mknod -m 666 $rpath/dev/tty c 5 0
+ fi
+ rm -f $rpath/dev/console
+ if ! $u;then
+ mknod -m 600 $rpath/dev/console c 5 1
+ fi
+ rm -f $rpath/dev/ptmx
+ if ! $u;then
+ mknod -m 666 $rpath/dev/ptmx c 5 2
+ fi
+ rm -f $rpath/dev/stdin
+ if ! $u;then
+ ln -s /proc/self/fd/0 $rpath/dev/stdin
+ fi
+ rm -f $rpath/dev/stdout
+ if ! $u;then
+ ln -s /proc/self/fd/1 $rpath/dev/stdout
+ fi
+ rm -f $rpath/dev/stderr
+ if ! $u;then
+ ln -s /proc/self/fd/2 $rpath/dev/stderr
+ fi
+ rm -f $rpath/dev/fd
+ if ! $u;then
+ ln -s /proc/self/fd $rpath/dev/fd
+ fi
+
+ # Must be before umount of /quad
+ for cache in yum dnf;do
+ c="umount $rpath/var/cache/$cache"
+ if $c 2>&1|grep -v ': not \(mounted\|found\)$';then
+ echo $c
+ fi
+ if ! $u;then
+ if [ -d /var/cache/mock/$r/${cache}_cache ];then
+ cr=$r
+ else
+ cr=`echo $r|sed 's/-[^-]*$//'`
+ fi
+ if [ -d /var/cache/mock/$cr/${cache}_cache ];then
+ c="mount --bind /var/cache/mock/$cr/${cache}_cache $rpath/var/cache/${cache}"
+ echo $c; $c
+ fi
+ fi