summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorRadek Vykydal <rvykydal@redhat.com>2009-02-03 09:28:48 +0100
committerRadek Vykydal <rvykydal@redhat.com>2009-02-03 09:28:48 +0100
commitbd1aa087d80e28e700fd489e1c9afffac6077973 (patch)
tree2c3012fc7fd662eaeb99ab1f16b7218f279a575c /fsset.py
parentd3aa9eff0b5190e35f7ca6713856b97543b87a72 (diff)
downloadanaconda-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.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/fsset.py b/fsset.py
index 005c64746..c1d47b5d7 100644
--- a/fsset.py
+++ b/fsset.py
@@ -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):