diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2014-11-19 23:22:52 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2014-11-19 23:22:52 +0100 |
commit | c75548300d63452b4fa615d71cb40cb10382aa33 (patch) | |
tree | 42e894ecb243c4b0fc55d7c40892abac10d60c89 | |
parent | d7985ebead2a69f8139bf4ade0747b2a96f784c4 (diff) | |
download | lvm2-c75548300d63452b4fa615d71cb40cb10382aa33.tar.gz |
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...
-rw-r--r-- | test/lib/aux.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/lib/aux.sh b/test/lib/aux.sh index 58b71c6a8..2fef20715 100644 --- a/test/lib/aux.sh +++ b/test/lib/aux.sh @@ -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 |