summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-10-20 23:08:12 +0000
committerJeremy Katz <katzj@redhat.com>2003-10-20 23:08:12 +0000
commit161e7e4a3a67ec881da7ca2b8164f71c0a544b34 (patch)
tree2b848189b06e67e3ae058a1b235f296c150ae76c /fsset.py
parent6d6d04d6a2e029981429a8c3c2e3bcbee7635b7d (diff)
downloadanaconda-161e7e4a3a67ec881da7ca2b8164f71c0a544b34.tar.gz
anaconda-161e7e4a3a67ec881da7ca2b8164f71c0a544b34.tar.xz
anaconda-161e7e4a3a67ec881da7ca2b8164f71c0a544b34.zip
don't try to check if bind mounted fs's are dirty (#107518)
various debugging bits that are generally useful
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/fsset.py b/fsset.py
index f8dc376dd..6e9937f56 100644
--- a/fsset.py
+++ b/fsset.py
@@ -1377,6 +1377,7 @@ class FileSystemSet:
if not entry.fsystem.isMountable():
continue
try:
+ log("trying to mount %s on %s" %(entry.device.getDevice(), entry.mountpoint))
entry.mount(instPath, readOnly = readOnly)
self.mountcount = self.mountcount + 1
except OSError, (num, msg):
@@ -1469,10 +1470,14 @@ class FileSystemSet:
# XXX - multifsify, virtualize isdirty per fstype
if entry.fsystem.getName() != "ext2": continue
if entry.getFormat(): continue
+ if isinstance(entry.device.getDevice(), BindMountDevice): continue
- if isys.ext2IsDirty(entry.device.getDevice()):
- log("%s is a dirty ext2 partition" % entry.device.getDevice())
- ret.append(entry.device.getDevice())
+ try:
+ if isys.ext2IsDirty(entry.device.getDevice()):
+ log("%s is a dirty ext2 partition" % entry.device.getDevice())
+ ret.append(entry.device.getDevice())
+ except Exception, e:
+ log("got an exception checking %s for being dirty, hoping it's not" %(entry.device.getDevice(),))
return ret