summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-02-26 06:00:48 +0000
committerJeremy Katz <katzj@redhat.com>2002-02-26 06:00:48 +0000
commitaff11b0588643d5ad85b8612ae4df92e6a9abcb5 (patch)
tree88b46e4460c4c01ca3746bc5c12b180f3e15d22d /fsset.py
parent40e74fbfd375d71198a961b094199e6434ca1ee5 (diff)
downloadanaconda-aff11b0588643d5ad85b8612ae4df92e6a9abcb5.tar.gz
anaconda-aff11b0588643d5ad85b8612ae4df92e6a9abcb5.tar.xz
anaconda-aff11b0588643d5ad85b8612ae4df92e6a9abcb5.zip
hrmm, I bet upgrades and rescue mode will work better now
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/fsset.py b/fsset.py
index 21b0587fc..613b1d693 100644
--- a/fsset.py
+++ b/fsset.py
@@ -64,8 +64,10 @@ def getUsableLinuxFs():
# make sure the default is first in the list, kind of ugly
default = fileSystemTypeGetDefault()
- if default in rc:
- rc = [ default ] + rc.remove(default)
+ defaultName = default.getName()
+ if defaultName in rc:
+ del rc[rc.index(defaultName)]
+ rc.insert(0, defaultName)
return rc
def mountCompare(a, b):