Vojtech Trefny 66ecf7
From 2f90040ff66eacc9715e370cd49ffb72d8d1f36f Mon Sep 17 00:00:00 2001
Vojtech Trefny 66ecf7
From: Vojtech Trefny <vtrefny@redhat.com>
Vojtech Trefny 66ecf7
Date: Wed, 11 Jul 2018 15:36:24 +0200
Vojtech Trefny 66ecf7
Subject: [PATCH] Force command line based libblockdev LVM plugin
Vojtech Trefny 66ecf7
Vojtech Trefny 66ecf7
---
Vojtech Trefny 66ecf7
 blivet/__init__.py | 9 +++++++--
Vojtech Trefny 66ecf7
 1 file changed, 7 insertions(+), 2 deletions(-)
Vojtech Trefny 66ecf7
Vojtech Trefny 66ecf7
diff --git a/blivet/__init__.py b/blivet/__init__.py
Vojtech Trefny 66ecf7
index c5a75bb..cb75917 100644
Vojtech Trefny 66ecf7
--- a/blivet/__init__.py
Vojtech Trefny 66ecf7
+++ b/blivet/__init__.py
Vojtech Trefny 66ecf7
@@ -63,11 +63,16 @@ gi.require_version("BlockDev", "2.0")
Vojtech Trefny 66ecf7
 from gi.repository import GLib
Vojtech Trefny 66ecf7
 from gi.repository import BlockDev as blockdev
Vojtech Trefny 66ecf7
 if arch.is_s390():
Vojtech Trefny 66ecf7
-    _REQUESTED_PLUGIN_NAMES = set(("lvm", "btrfs", "swap", "crypto", "loop", "mdraid", "mpath", "dm", "s390", "nvdimm"))
Vojtech Trefny 66ecf7
+    _REQUESTED_PLUGIN_NAMES = set(("btrfs", "swap", "crypto", "loop", "mdraid", "mpath", "dm", "s390", "nvdimm"))
Vojtech Trefny 66ecf7
 else:
Vojtech Trefny 66ecf7
-    _REQUESTED_PLUGIN_NAMES = set(("lvm", "btrfs", "swap", "crypto", "loop", "mdraid", "mpath", "dm", "nvdimm"))
Vojtech Trefny 66ecf7
+    _REQUESTED_PLUGIN_NAMES = set(("btrfs", "swap", "crypto", "loop", "mdraid", "mpath", "dm", "nvdimm"))
Vojtech Trefny 66ecf7
 
Vojtech Trefny 66ecf7
 _requested_plugins = blockdev.plugin_specs_from_names(_REQUESTED_PLUGIN_NAMES)
Vojtech Trefny 66ecf7
+# XXX force non-dbus LVM plugin
Vojtech Trefny 66ecf7
+lvm_plugin = blockdev.PluginSpec()
Vojtech Trefny 66ecf7
+lvm_plugin.name = blockdev.Plugin.LVM
Vojtech Trefny 66ecf7
+lvm_plugin.so_name = "libbd_lvm.so.2"
Vojtech Trefny 66ecf7
+_requested_plugins.append(lvm_plugin)
Vojtech Trefny 66ecf7
 try:
Vojtech Trefny 66ecf7
     # do not check for dependencies during libblockdev initializtion, do runtime
Vojtech Trefny 66ecf7
     # checks instead
Vojtech Trefny 66ecf7
-- 
Vojtech Trefny 66ecf7
1.8.3.1
Vojtech Trefny 66ecf7