summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2002-06-23 05:36:14 +0000
committerMike Fulbright <msf@redhat.com>2002-06-23 05:36:14 +0000
commit4107d3f5d461a62b425e4fb68c826392d427a447 (patch)
treec621ee60c9a1fbe35b785fda8a46ae78c61b3e03 /textw
parentf1191862b788175e5ffec5d8aae1518f507afa99 (diff)
downloadanaconda-4107d3f5d461a62b425e4fb68c826392d427a447.tar.gz
anaconda-4107d3f5d461a62b425e4fb68c826392d427a447.tar.xz
anaconda-4107d3f5d461a62b425e4fb68c826392d427a447.zip
added support for editting preexisting lv
Diffstat (limited to 'textw')
-rw-r--r--textw/partition_text.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/textw/partition_text.py b/textw/partition_text.py
index 12d35f60a..17abafcbf 100644
--- a/textw/partition_text.py
+++ b/textw/partition_text.py
@@ -625,7 +625,13 @@ class PartitionWindow:
fsoptLbl = None
- elif origrequest.type == REQUEST_PREEXIST and origrequest.fstype:
+ elif origrequest.type == REQUEST_VG:
+ self.intf.messageWindow(_("Not Supported"),
+ _("LVM Volume Groups can only be "
+ "editted in the graphical installer."))
+ return
+
+ elif (origrequest.type == REQUEST_LV or origrequest.type == REQUEST_PREEXIST) and origrequest.fstype:
# set some defaults
format = origrequest.format
@@ -669,10 +675,6 @@ class PartitionWindow:
poplevel.add(subgrid, 0, row, (0,1,0,0))
- elif origrequest.type == REQUEST_LV or origrequest.type == REQUEST_VG:
- self.intf.messageWindow("Not Supported", "Cant edit this type yet")
- return
-
row = row + 1
if origrequest.type == REQUEST_NEW or origrequest.getProtected():
@@ -793,7 +795,7 @@ class PartitionWindow:
else:
request = copy.copy(origrequest)
- if request.type == REQUEST_PREEXIST:
+ if request.type == REQUEST_PREEXIST or request.type == REQUEST_LV:
request.fstype = newfstype
if request.fstype.isMountable():
@@ -801,7 +803,7 @@ class PartitionWindow:
else:
request.mountpoint = None
- if request.type == REQUEST_PREEXIST:
+ if request.type == REQUEST_PREEXIST or request.type == REQUEST_LV:
request.format = format
request.migrate = migrate
request.fstype = newfstype