summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-09-30 17:26:53 +0000
committerJeremy Katz <katzj@redhat.com>2004-09-30 17:26:53 +0000
commit3b62a8225b008415c68753dc8e12da24ade2fec9 (patch)
tree6339c747a06fa134721d7af25654f57c2919a06a /fsset.py
parentd0eb7dc7db627e7e19bb47e5d1ba21bdf04a82d2 (diff)
downloadanaconda-3b62a8225b008415c68753dc8e12da24ade2fec9.tar.gz
anaconda-3b62a8225b008415c68753dc8e12da24ade2fec9.tar.xz
anaconda-3b62a8225b008415c68753dc8e12da24ade2fec9.zip
2004-09-30 Jeremy Katz <katzj@redhat.com>
* fsset.py (FileSystemSet.makeLVMNodes): Try to fix upgrade traceback (#134258)
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fsset.py b/fsset.py
index a1c66fb9e..5ff1cfd1a 100644
--- a/fsset.py
+++ b/fsset.py
@@ -1562,7 +1562,7 @@ MAILADDR root
if trylvm1:
dev = root.device.getDevice()
# lvm1 major is 58
- if posix.major(os.stat("%s/dev/%s" %(instPath, dev)).st_rdev) == 58:
+ if os.access("%s/dev/%s" %(instPath, dev), os.R_OK) and posix.major(os.stat("%s/dev/%s" %(instPath, dev)).st_rdev) == 58:
rootlvm1 = 1
if isinstance(root.device, LogicalVolumeDevice) or rootlvm1: