mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 13:58:34 +00:00
zdtm.sh: set a type argument for mknod
Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
94d91458c9
commit
b6d9bcd10d
@@ -548,10 +548,10 @@ construct_root()
|
|||||||
mknod -m 0666 $root/dev/null c 1 3
|
mknod -m 0666 $root/dev/null c 1 3
|
||||||
if [ -r "/dev/net/tun" ]; then
|
if [ -r "/dev/net/tun" ]; then
|
||||||
mkdir $root/dev/net/
|
mkdir $root/dev/net/
|
||||||
mknod -m 0666 $root/dev/net/tun $(stat -c "0x%t" /dev/net/tun) $(stat -c "0x%T" /dev/net/tun)
|
mknod -m 0666 $root/dev/net/tun c $(stat -c "0x%t" /dev/net/tun) $(stat -c "0x%T" /dev/net/tun)
|
||||||
fi
|
fi
|
||||||
if [ -r "/dev/rtc" ]; then
|
if [ -r "/dev/rtc" ]; then
|
||||||
mknod -m 0666 $root/dev/rtc $(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
|
fi
|
||||||
|
|
||||||
mkdir $root/proc
|
mkdir $root/proc
|
||||||
|
Reference in New Issue
Block a user