mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
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:
parent
261cb6a485
commit
9521653f54
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue