diff options
author | Matt Wilson <msw@redhat.com> | 2001-06-22 01:37:38 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-06-22 01:37:38 +0000 |
commit | 2f877812ad4dde15b825bed82c602e800a1d35ef (patch) | |
tree | c702b993b07e70bda7ef2ae75aa779d2bfd7bfb3 /fstab.py | |
parent | faec668c85c1c079fa697b5ec5378ad6e4bbf338 (diff) | |
download | anaconda-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.py | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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 |