From 972c3c78379e21e583981e4e5caa8f5658c36905 Mon Sep 17 00:00:00 2001 From: Bill Nottingham <notting@redhat.com> Date: Thu, 16 Jan 2003 21:11:46 +0000 Subject: don't traceback if we don't have lvm for some reason --- packages.py | 1 + 1 file changed, 1 insertion(+) (limited to 'packages.py') 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"], -- cgit