diff options
author | Matt Wilson <msw@redhat.com> | 2001-06-20 19:31:26 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-06-20 19:31:26 +0000 |
commit | 9c080a57f921ba4c293ed9fce21d3caa0aa1f39f (patch) | |
tree | 4d9e085e1374ea82d45d7b9ec154c6c1c970d6a4 /fsset.py | |
parent | 6012417f7c1df2dfdb88f620c354d804b3136a86 (diff) | |
download | anaconda-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.py | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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): |