diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-01-25 08:16:30 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-01-25 08:16:30 +0000 |
commit | be5b687ba39eb7e8e8650384850e541df73c6cf0 (patch) | |
tree | ba08f1f6a88f9712db6ca18d035ca52091693c38 /iw | |
parent | 1f43e5e7b546fe7cafca8163f62f51e504e07eb7 (diff) | |
download | anaconda-be5b687ba39eb7e8e8650384850e541df73c6cf0.tar.gz anaconda-be5b687ba39eb7e8e8650384850e541df73c6cf0.tar.xz anaconda-be5b687ba39eb7e8e8650384850e541df73c6cf0.zip |
we can actually create logical volumes now
Diffstat (limited to 'iw')
-rw-r--r-- | iw/partition_gui.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/iw/partition_gui.py b/iw/partition_gui.py index bb6664186..3b8bb4f02 100644 --- a/iw/partition_gui.py +++ b/iw/partition_gui.py @@ -1681,6 +1681,12 @@ class PartitionWindow(InstallWindow): maintable.attach(createAlignedLabel(_("Size")), 0, 1, row, row + 1) sizeEntry = gtk.Entry(16) maintable.attach(sizeEntry, 1, 2, row, row + 1) + row = row + 1 + + maintable.attach(createAlignedLabel(_("Logical Volume Name")), 0, 1, row, row + 1) + lvnameEntry = gtk.Entry(16) + maintable.attach(lvnameEntry, 1, 2, row, row + 1) + row = row + 1 dialog.vbox.pack_start(maintable) dialog.show_all() @@ -1695,9 +1701,10 @@ class PartitionWindow(InstallWindow): fsystem = fileSystemTypeGetDefault() mntpt = mountpointEntry.get_text() size = int(sizeEntry.get_text()) + lvname = lvnameEntry.get_text() request = PartitionSpec(fsystem, REQUEST_LV, mountpoint = mntpt, - size = size) + volname = lvname, size = size) self.logvolreqs.append(request) self.logvollist.append((mntpt,)) @@ -1761,7 +1768,9 @@ class PartitionWindow(InstallWindow): # first add the volume group request = PartitionSpec(fileSystemTypeGet("volume group (LVM)"), - REQUEST_VG, physvolumes = pv) + REQUEST_VG, physvolumes = pv, + vgname = volnameEntry.get_text()) + self.partitions.addRequest(request) # this is an evil hack for now. should addRequest return the id? @@ -1771,6 +1780,7 @@ class PartitionWindow(InstallWindow): # now add the logical volumes for lv in self.logvolreqs: lv.volumeGroup = vgID + lv.format = 1 self.partitions.addRequest(lv) for req in self.partitions.requests: |