Skip to content

Commit

Permalink
zdtm.sh: remove warnings about existent directories
Browse files Browse the repository at this point in the history
and call mknod with correct argumetns

Signed-off-by: Andrew Vagin <avagin@virtuozzo.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
  • Loading branch information
avagin authored and xemul committed Dec 23, 2015
1 parent 36c4cba commit 6474403
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/zdtm.sh
Expand Up @@ -542,19 +542,19 @@ construct_root()
done
done

mkdir $root/dev
mkdir $root/dev/pts
mkdir -p $root/dev
mkdir -p $root/dev/pts
mknod -m 0666 $root/dev/tty c 5 0
mknod -m 0666 $root/dev/null c 1 3
if [ -r "/dev/net/tun" ]; then
mkdir $root/dev/net/
mkdir -p $root/dev/net/
mknod -m 0666 $root/dev/net/tun c $(stat -c "0x%t" /dev/net/tun) $(stat -c "0x%T" /dev/net/tun)
fi
if [ -r "/dev/rtc" ]; then
mknod -m 0666 $root/dev/rtc -c $(stat -c "0x%t" /dev/rtc) $(stat -c "0x%T" /dev/rtc)
mknod -m 0666 $root/dev/rtc c $(stat -c "0x%t" /dev/rtc) $(stat -c "0x%T" /dev/rtc)
fi

mkdir $root/proc
mkdir -p $root/proc

# make 'tmp' dir under new root
mkdir -p $tmpdir
Expand Down

0 comments on commit 6474403

Please sign in to comment.