[master 14/21] Add availability information to devicelibs files.

mulkieran installerbot-noreply at redhat.com
Tue May 12 21:35:56 UTC 2015


From: mulhern <amulhern at redhat.com>

Related: #12

Signed-off-by: mulhern <amulhern at redhat.com>
---
 blivet/devicelibs/btrfs.py  | 3 +++
 blivet/devicelibs/crypto.py | 3 +++
 blivet/devicelibs/lvm.py    | 2 ++
 blivet/devicelibs/mdraid.py | 3 +++
 4 files changed, 11 insertions(+)

diff --git a/blivet/devicelibs/btrfs.py b/blivet/devicelibs/btrfs.py
index 65a6ca6..c8d9319 100644
--- a/blivet/devicelibs/btrfs.py
+++ b/blivet/devicelibs/btrfs.py
@@ -22,6 +22,7 @@
 
 from . import raid
 from ..size import Size
+from ..tasks import availability
 
 import logging
 log = logging.getLogger("blivet")
@@ -35,3 +36,5 @@
 RAID_levels = raid.RAIDLevels(["raid0", "raid1", "raid10", "single"])
 
 metadata_levels = raid.RAIDLevels(["raid0", "raid1", "raid10", "single", "dup"])
+
+EXTERNAL_DEPENDENCIES = [availability.BLOCKDEV_BTRFS_PLUGIN]
diff --git a/blivet/devicelibs/crypto.py b/blivet/devicelibs/crypto.py
index 5fc867d..474c905 100644
--- a/blivet/devicelibs/crypto.py
+++ b/blivet/devicelibs/crypto.py
@@ -21,6 +21,9 @@
 #
 
 from ..size import Size
+from ..tasks import availability
 
 LUKS_METADATA_SIZE = Size("2 MiB")
 MIN_CREATE_ENTROPY = 256 # bits
+
+EXTERNAL_DEPENDENCIES = [availability.BLOCKDEV_CRYPTO_PLUGIN]
diff --git a/blivet/devicelibs/lvm.py b/blivet/devicelibs/lvm.py
index e781d1d..0b7658c 100644
--- a/blivet/devicelibs/lvm.py
+++ b/blivet/devicelibs/lvm.py
@@ -48,6 +48,8 @@
 KNOWN_THPOOL_PROFILES = (ThPoolProfile("thin-generic", N_("Generic")),
                          ThPoolProfile("thin-performance", N_("Performance")))
 
+EXTERNAL_DEPENDENCIES = [availability.BLOCKDEV_LVM_PLUGIN]
+
 # Start config_args handling code
 #
 # Theoretically we can handle all that can be handled with the LVM --config
diff --git a/blivet/devicelibs/mdraid.py b/blivet/devicelibs/mdraid.py
index bbcd02f..2f63f8e 100644
--- a/blivet/devicelibs/mdraid.py
+++ b/blivet/devicelibs/mdraid.py
@@ -22,6 +22,7 @@
 
 from ..size import Size
 from . import raid
+from ..tasks import availability
 
 import logging
 log = logging.getLogger("blivet")
@@ -40,3 +41,5 @@ def isRaidLevel(cls, level):
            hasattr(level, 'get_size')
 
 RAID_levels = MDRaidLevels(["raid0", "raid1", "raid4", "raid5", "raid6", "raid10", "linear"])
+
+EXTERNAL_DEPENDENCIES = [availability.BLOCKDEV_MDRAID_PLUGIN]


-- 
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/152e6c9fedf5b1e9ec8be9c597052eeba57bbb38


More information about the anaconda-patches mailing list