fix test /tmp/block_device for centos 5.11

CentOS 5.11 doesnt recognize minor #20 for the block device, but can connect #7. Make the adjustment so that reading content from block_device doesnt error out.

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
Dominik Richter 2015-09-16 12:11:06 +02:00
parent 261cb6a485
commit 9521653f54

View file

@ -25,7 +25,7 @@ execute 'create pipe/fifo' do
end
execute 'create block_device' do
command 'mknod /tmp/block_device b 7 20 && chmod 0666 /tmp/block_device && chown root:root /tmp/block_device'
command 'mknod /tmp/block_device b 7 7 && chmod 0666 /tmp/block_device && chown root:root /tmp/block_device'
not_if 'test -e /tmp/block_device'
end