summaryrefslogtreecommitdiffstats
path: root/fstab.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-06-22 01:37:38 +0000
committerMatt Wilson <msw@redhat.com>2001-06-22 01:37:38 +0000
commit2f877812ad4dde15b825bed82c602e800a1d35ef (patch)
treec702b993b07e70bda7ef2ae75aa779d2bfd7bfb3 /fstab.py
parentfaec668c85c1c079fa697b5ec5378ad6e4bbf338 (diff)
downloadanaconda-2f877812ad4dde15b825bed82c602e800a1d35ef.tar.gz
anaconda-2f877812ad4dde15b825bed82c602e800a1d35ef.tar.xz
anaconda-2f877812ad4dde15b825bed82c602e800a1d35ef.zip
first pass at getting things in alignment for gui upgrades. Should only affect upgrades, not installs
Diffstat (limited to 'fstab.py')
-rw-r--r--fstab.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/fstab.py b/fstab.py
index 4e192def1..c130c4510 100644
--- a/fstab.py
+++ b/fstab.py
@@ -188,6 +188,24 @@ class Fstab:
isys.mount('/proc', instPath + '/proc', 'proc')
+ def hasDirtyFilesystems(self):
+ if self.rootOnLoop():
+ (rootDev, rootFs) = self.getRootDevice()
+ mountLoopbackRoot(rootDev, skipMount = 1)
+ dirty = isys.ext2IsDirty("loop1")
+ unmountLoopbackRoot(skipMount = 1)
+ if dirty: return 1
+
+ for entry in self.entries:
+ # XXX - multifsify, virtualize isdirty per fstype
+ if fsystem != "ext2": continue
+ if doFormat: continue
+
+ if isys.ext2IsDirty(entry.device.getDevice()): return 1
+
+ return 0
+
+
def write(self, prefix):
format = fstabFormatString