diff options
Diffstat (limited to 'daemon/lvm.c')
-rw-r--r-- | daemon/lvm.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/daemon/lvm.c b/daemon/lvm.c index 3920e95b..564517c5 100644 --- a/daemon/lvm.c +++ b/daemon/lvm.c @@ -26,6 +26,14 @@ #include "daemon.h" #include "c-ctype.h" #include "actions.h" +#include "optgroups.h" + +int +optgroup_lvm2_available (void) +{ + int r = access ("/sbin/lvm", X_OK); + return r == 0; +} /* LVM actions. Keep an eye on liblvm, although at the time * of writing it hasn't progressed very far. |