1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: prepare control node before clvmd

Make sure there is 'control' node before clvmd is started.
Somehow  'clvmd' is not allowed by selinux to create one.

TODO: Check is selinux policy is right here...
This commit is contained in:
Zdenek Kabelac 2014-11-19 23:22:52 +01:00
parent d7985ebead
commit c75548300d

View File

@ -35,6 +35,7 @@ prepare_clvmd() {
# lvs is executed from clvmd - use our version
export LVM_BINARY=$(which lvm)
test -e "$DM_DEV_DIR/control" || dmsetup table # create control node
# skip if singlenode is not compiled in
(clvmd --help 2>&1 | grep "Available cluster managers" | grep "singlenode") || skip