[f22-branch 2/2] Fix status for LVMPhysicalVolume format

vojtechtrefny installerbot-noreply at redhat.com
Tue Jun 2 07:44:59 UTC 2015


From: Vojtech Trefny <vtrefny at redhat.com>

LVMPhysicalVolume format should be True (active) if exists and if
has an existing VG.

(cherry picked from commit de7b86c62a5daf55309c64ed0f709ae01316a5c8)

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 ca66cfc..b5504a1 100644
--- a/blivet/formats/lvmpv.py
+++ b/blivet/formats/lvmpv.py
@@ -158,7 +158,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/21f02d54be3e082cadb9493fc0fe62ddefd05f6d


More information about the anaconda-patches mailing list