summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-07-06 16:30:07 +0000
committerMike Fulbright <msf@redhat.com>2001-07-06 16:30:07 +0000
commit915437118b0274b1ad2f356bf6475bfd6a4f3357 (patch)
treee8b1bd7c12ed82cfaca71704e7e2f55083b84997 /textw
parent1a917f43a7b77847115607a8c9d3d964555d97bc (diff)
downloadanaconda-915437118b0274b1ad2f356bf6475bfd6a4f3357.tar.gz
anaconda-915437118b0274b1ad2f356bf6475bfd6a4f3357.tar.xz
anaconda-915437118b0274b1ad2f356bf6475bfd6a4f3357.zip
notify user in TUI mode of how we're conditioning a pre-existing partition (format, migrate, leave alone)
Diffstat (limited to 'textw')
-rw-r--r--textw/partition_text.py22
1 files changed, 19 insertions, 3 deletions
diff --git a/textw/partition_text.py b/textw/partition_text.py
index 5543ad5e9..d82a7ba40 100644
--- a/textw/partition_text.py
+++ b/textw/partition_text.py
@@ -407,7 +407,8 @@ class PartitionWindow:
row = row + 1
subgrid = Grid(2, 5)
srow = 0
- noformatrb = SingleRadioButton(_("Do not format"), None, not format and not migrate)
+ noformatrb = SingleRadioButton(_("Leave unchanged (preserve data)"),
+ None, not format and not migrate)
subgrid.setField(noformatrb, 0, srow, (0,0,0,1),anchorLeft = 1)
if origrequest.fstype and origrequest.fstype.isFormattable():
@@ -521,11 +522,12 @@ class PartitionWindow:
row = row + 1
primary = Checkbox(_("Force to be a primary partition"))
poplevel.add(primary, 0, row, (0,1,0,0))
-
+
+ fsoptLbl = None
else:
subgrid = Grid(2, 4)
# filesystem type selection
- typeLbl = Label(_("Filesystem type:"))
+ typeLbl = Label(_("Filesystem Type:"))
subgrid.setField(typeLbl, 0, 0, (0,0,2,0), anchorLeft = 1)
type = Label(origrequest.fstype.getName())
subgrid.setField(type, 1, 0, anchorRight = 1)
@@ -533,6 +535,11 @@ class PartitionWindow:
subgrid.setField(sizeLbl, 0, 1, (0,1,2,0), anchorLeft = 1)
size = Label("%s" %(int(origrequest.size)))
subgrid.setField(size, 1, 1, (0,1,0,0), anchorRight = 1)
+ tmpLbl = Label(_("Filesystem Option:"))
+ subgrid.setField(tmpLbl, 0, 2, (0,1,2,0), anchorLeft = 1)
+ fsoptLbl = Label(_(""))
+ subgrid.setField(fsoptLbl, 1, 2, (0,1,2,0), anchorLeft = 1)
+
poplevel.add(subgrid, 0, row, (0,1,0,0))
format = origrequest.format
@@ -546,6 +553,15 @@ class PartitionWindow:
poplevel.add(popbb, 0, row, (0,1,0,0), growx = 1)
while 1:
+
+ if fsoptLbl:
+ if format:
+ fsoptLbl.setText(_("Format as %s") % (newfstype.getName()))
+ elif migrate:
+ fsoptLbl.setText(_("Migrate to %s") %(newfstype.getName()))
+ else:
+ fsoptLbl.setText(_("Leave unchanged"))
+
res = poplevel.run()
# if the user hit cancel, do nothing