summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages.py b/packages.py
index 920733ac2..3a4e96afa 100644
--- a/packages.py
+++ b/packages.py
@@ -792,6 +792,15 @@ def doPostInstall(method, id, intf, instPath):
finally:
pass
+ # XXX hack - we should really write a proper /etc/lvmtab
+ if os.access(instPath + "/sbin/vgscan", os.X_OK):
+ rc = iutil.execWithRedirect("/usr/sbin/vgscan",
+ ["vgscan", "-v"],
+ stdout = "/dev/tty5",
+ stderr = "/dev/tty5",
+ root = instPath,
+ searchPath = 1)
+
w.pop ()
sys.stdout.flush()