diff options
author | Radek Vykydal <rvykydal@redhat.com> | 2009-02-03 09:28:48 +0100 |
---|---|---|
committer | Radek Vykydal <rvykydal@redhat.com> | 2009-02-03 09:28:48 +0100 |
commit | bd1aa087d80e28e700fd489e1c9afffac6077973 (patch) | |
tree | 2c3012fc7fd662eaeb99ab1f16b7218f279a575c /fsset.py | |
parent | d3aa9eff0b5190e35f7ca6713856b97543b87a72 (diff) | |
download | anaconda-bd1aa087d80e28e700fd489e1c9afffac6077973.tar.gz anaconda-bd1aa087d80e28e700fd489e1c9afffac6077973.tar.xz anaconda-bd1aa087d80e28e700fd489e1c9afffac6077973.zip |
Make ext4 default in UI filesystem selection (bug #481112)
This patch also makes selecting /boot as mountpoint
to automatically select ext3 (in place of ext4)
in filesystem combo.
Diffstat (limited to 'fsset.py')
-rw-r--r-- | fsset.py | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -69,13 +69,22 @@ if iutil.isEfi(): fileSystemTypes = {} def fileSystemTypeGetDefault(): + if fileSystemTypeGet('ext4').isSupported(): + return fileSystemTypeGet('ext4') if fileSystemTypeGet('ext3').isSupported(): return fileSystemTypeGet('ext3') elif fileSystemTypeGet('ext2').isSupported(): return fileSystemTypeGet('ext2') else: - raise ValueError, "You have neither ext3 or ext2 support in your kernel!" + raise ValueError, "None of ext4, ext3 or ext2 is supported in your kernel!" +def fileSystemTypeGetDefaultBoot(): + if fileSystemTypeGet('ext3').isSupported(): + return fileSystemTypeGet('ext3') + elif fileSystemTypeGet('ext2').isSupported(): + return fileSystemTypeGet('ext2') + else: + raise ValueError, "You have neither ext3 or ext2 support in your kernel!" def fileSystemTypeGet(key): if fileSystemTypes.has_key(key): |