summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-07-10 04:31:24 +0000
committerJeremy Katz <katzj@redhat.com>2001-07-10 04:31:24 +0000
commita6e885de3bd709e05a26e16f3a03ee1ac1202a83 (patch)
treec2f5f56139fe1a06339b0624146f9f32d172da3b /iw
parent40a514a8d6eedf28ce1cdb53739187cea9b56862 (diff)
downloadanaconda-a6e885de3bd709e05a26e16f3a03ee1ac1202a83.tar.gz
anaconda-a6e885de3bd709e05a26e16f3a03ee1ac1202a83.tar.xz
anaconda-a6e885de3bd709e05a26e16f3a03ee1ac1202a83.zip
gracefully handle partitions which we don't understand the fstype of
(and hence, which have an fs type of None). set to foreign fs type and allow formatting of these partitions
Diffstat (limited to 'iw')
-rw-r--r--iw/partition_gui.py35
1 files changed, 16 insertions, 19 deletions
diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index 59426b4e2..fc6028981 100644
--- a/iw/partition_gui.py
+++ b/iw/partition_gui.py
@@ -817,25 +817,22 @@ class PartitionWindow(InstallWindow):
maintable.attach(noformatrb, 0, 2, row, row + 1)
row = row + 1
- if ofstype.isFormattable():
- formatrb = GtkRadioButton (label=_("Format partition as:"),
- group = noformatrb)
- formatrb.set_active(0)
- if origrequest.format:
- formatrb.set_active(1)
- elif origrequest.format == None and not origrequest.migrate:
- formatrb.set_active(isFormatOnByDefault(origrequest))
-
- maintable.attach(formatrb, 0, 1, row, row + 1)
- (fstype, fstypeMenu) = createFSTypeMenu(ofstype,fstypechangeCB,
- mountCombo)
- fstype.set_sensitive(formatrb.get_active())
- maintable.attach(fstype, 1, 2, row, row + 1)
- row = row + 1
-
- formatrb.connect("toggled", formatOptionCB, fstype)
- else:
- formatrb = None
+ formatrb = GtkRadioButton (label=_("Format partition as:"),
+ group = noformatrb)
+ formatrb.set_active(0)
+ if origrequest.format:
+ formatrb.set_active(1)
+ elif origrequest.format == None and not origrequest.migrate:
+ formatrb.set_active(isFormatOnByDefault(origrequest))
+
+ maintable.attach(formatrb, 0, 1, row, row + 1)
+ (fstype, fstypeMenu) = createFSTypeMenu(ofstype,fstypechangeCB,
+ mountCombo)
+ fstype.set_sensitive(formatrb.get_active())
+ maintable.attach(fstype, 1, 2, row, row + 1)
+ row = row + 1
+
+ formatrb.connect("toggled", formatOptionCB, fstype)
if origrequest.origfstype.isMigratable():
migraterb = GtkRadioButton (label=_("Migrate partition to:"),