[master 1/2] Fix status for LVMPhysicalVolume format
vojtechtrefny
installerbot-noreply at redhat.com
Thu Apr 23 12:07:21 UTC 2015
From: Vojtech Trefny <vtrefny at redhat.com>
LVMPhysicalVolume format should be True (active) if exists and if
has an existing VG.
Signed-off-by: Vojtech Trefny <vtrefny at redhat.com>
---
blivet/formats/lvmpv.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blivet/formats/lvmpv.py b/blivet/formats/lvmpv.py
index 3c9e5c0..346083c 100644
--- a/blivet/formats/lvmpv.py
+++ b/blivet/formats/lvmpv.py
@@ -125,7 +125,7 @@ def _destroy(self, **kwargs):
def status(self):
# XXX hack
return (self.exists and self.vgName and
- os.path.isdir("/dev/mapper/%s" % self.vgName))
+ os.path.isdir("/dev/%s" % self.vgName))
register_device_format(LVMPhysicalVolume)
--
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/de7b86c62a5daf55309c64ed0f709ae01316a5c8
More information about the anaconda-patches
mailing list