summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages.py b/packages.py
index c010e7422..98721806e 100644
--- a/packages.py
+++ b/packages.py
@@ -1108,6 +1108,7 @@ def doPostInstall(method, id, intf, instPath):
# XXX hack - we should really write a proper /etc/lvmtab. but for now
# just create the lvmtab if they have /sbin/vgscan and some VGs
if (os.access(instPath + "/sbin/vgscan", os.X_OK) and
+ os.access(instPath + "/proc/lvm", os.R_OK) and
len(os.listdir("/proc/lvm/VGs")) > 0):
rc = iutil.execWithRedirect("/sbin/vgscan",
["vgscan", "-v"],