summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-07-31 18:14:33 +0000
committerMike Fulbright <msf@redhat.com>2001-07-31 18:14:33 +0000
commitf483919ee93e5534e4afc80b7edcfe243936845c (patch)
treea0dd105f44c6fb86d6d90bf4599e73cdae41b609 /textw
parentc8ac8e302d4e9ad9d646418698793e6eebb0fc43 (diff)
downloadanaconda-f483919ee93e5534e4afc80b7edcfe243936845c.tar.gz
anaconda-f483919ee93e5534e4afc80b7edcfe243936845c.tar.xz
anaconda-f483919ee93e5534e4afc80b7edcfe243936845c.zip
ignore RAID on RAID
Diffstat (limited to 'textw')
-rw-r--r--textw/partition_text.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/textw/partition_text.py b/textw/partition_text.py
index b9d73d972..0a34a2857 100644
--- a/textw/partition_text.py
+++ b/textw/partition_text.py
@@ -66,6 +66,8 @@ class PartitionWindow:
elif part.fs_type:
if request and request.fstype != None:
ptype = request.fstype.getName()
+ if ptype == "foreign":
+ ptype = map_foreign_to_fsname(part.native_type)
else:
ptype = part.fs_type.name
else:
@@ -201,7 +203,8 @@ class PartitionWindow:
# make the list of available filesystems and it's label
- def makeFsList(self, request, usecallback=1, uselabel=1, usetypes=None):
+ def makeFsList(self, request, usecallback=1, uselabel=1, usetypes=None,
+ ignorefs = None):
subgrid = Grid(1, 2)
row = 0
# filesystem type selection
@@ -221,6 +224,9 @@ class PartitionWindow:
if not fileSystemTypeGet(name).isSupported():
continue
+ if ignorefs and name in ignorefs:
+ continue
+
if fileSystemTypeGet(name).isFormattable():
fstype.append(name, types[name])
if request.fstype and request.fstype.getName() in names and \
@@ -778,7 +784,7 @@ class PartitionWindow:
row = row + 1
subgrid = Grid(2, 1)
- (fstype, fsgrid) = self.makeFsList(raidrequest)
+ (fstype, fsgrid) = self.makeFsList(raidrequest, ignorefs = ["software RAID"])
subgrid.setField(fsgrid, 0, 0, anchorLeft = 1, anchorTop=1)
(raidtype, raidgrid) = self.makeRaidList(raidrequest)
subgrid.setField(raidgrid, 1, 0, (2,0,0,0), anchorRight=1, anchorTop=1)