summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-06-20 19:31:26 +0000
committerMatt Wilson <msw@redhat.com>2001-06-20 19:31:26 +0000
commit9c080a57f921ba4c293ed9fce21d3caa0aa1f39f (patch)
tree4d9e085e1374ea82d45d7b9ec154c6c1c970d6a4 /fsset.py
parent6012417f7c1df2dfdb88f620c354d804b3136a86 (diff)
downloadanaconda-9c080a57f921ba4c293ed9fce21d3caa0aa1f39f.tar.gz
anaconda-9c080a57f921ba4c293ed9fce21d3caa0aa1f39f.tar.xz
anaconda-9c080a57f921ba4c293ed9fce21d3caa0aa1f39f.zip
override ext3 mount -- try ext2 first
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/fsset.py b/fsset.py
index fd32ff575..bea329fcc 100644
--- a/fsset.py
+++ b/fsset.py
@@ -214,6 +214,19 @@ class ext3FileSystem(FileSystemType):
"system.") % (entry.device.getDevice(),))
raise SystemError
+ def mount(self, device, mountpoint, readOnly=0):
+ if not self.isMountable():
+ return
+ iutil.mkdirChain(mountpoint)
+ # tricky - mount the filesystem as ext2, it makes the install
+ # faster
+ try:
+ isys.mount(device, mountpoint, fstype = "ext2",
+ readOnly = readOnly)
+ except OSError:
+ isys.mount(device, mountpoint, fstype = "ext3",
+ readOnly = readOnly)
+
fileSystemTypeRegister(ext3FileSystem())
class raidMemberDummyFileSystem(FileSystemType):