summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-12-01 16:14:36 +0000
committerChris Lumens <clumens@redhat.com>2006-12-01 16:14:36 +0000
commitdc3b8f3e18b386a8c44f603e95ef80865781493d (patch)
treef762a48a07a884c403de3eb7e656c4f0d382a135 /iw
parenta6f2637736762f43db03c2debc3af0b5e29b675d (diff)
downloadanaconda-dc3b8f3e18b386a8c44f603e95ef80865781493d.tar.gz
anaconda-dc3b8f3e18b386a8c44f603e95ef80865781493d.tar.xz
anaconda-dc3b8f3e18b386a8c44f603e95ef80865781493d.zip
Make sure to copy the format attribute over to the request on certain new
volume groups (#217585).
Diffstat (limited to 'iw')
-rw-r--r--iw/lvm_dialog_gui.py7
-rw-r--r--iw/partition_gui.py2
2 files changed, 3 insertions, 6 deletions
diff --git a/iw/lvm_dialog_gui.py b/iw/lvm_dialog_gui.py
index 730654f6a..88ec2e227 100644
--- a/iw/lvm_dialog_gui.py
+++ b/iw/lvm_dialog_gui.py
@@ -899,18 +899,13 @@ class VolumeGroupEditor:
origname = None
if origvname != volname:
- tmpreq = VolumeGroupRequestSpec(physvols = pvlist,
- vgname = volname)
if self.partitions.isVolumeGroupNameInUse(volname):
self.intf.messageWindow(_("Name in use"),
_("The volume group name \"%s\" is "
"already in use. Please pick "
"another." % (volname,)),
custom_icon="error")
- del tmpreq
continue
-
- del tmpreq
# get physical extent
pesize = int(self.peCombo.get_active_value())
@@ -924,6 +919,8 @@ class VolumeGroupEditor:
# if it was preexisting, it still should be
if self.origvgrequest and self.origvgrequest.getPreExisting():
request.preexist = 1
+ elif self.origvgrequest:
+ request.format = self.origvgrequest.format
return (request, self.logvolreqs)
diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index 0fc1b7230..5e9c0675b 100644
--- a/iw/partition_gui.py
+++ b/iw/partition_gui.py
@@ -1193,7 +1193,7 @@ class PartitionWindow(InstallWindow):
custom_icon="error")
return
- request = VolumeGroupRequestSpec()
+ request = VolumeGroupRequestSpec(format=True)
self.editLVMVolumeGroup(request, isNew = 1)
return