summaryrefslogtreecommitdiffstats
path: root/iw/partition_dialog_gui.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-03-26 14:05:45 -0400
committerChris Lumens <clumens@redhat.com>2009-03-30 17:27:15 -0400
commitb91b8f5b8dd0cedb329c11f7760cd6b07bae658b (patch)
tree00c72a618c7d04283e1196f839fc64097da261eb /iw/partition_dialog_gui.py
parentf273f08ca8f06fd23bfd02a60bdd050eecfa2833 (diff)
downloadanaconda-b91b8f5b8dd0cedb329c11f7760cd6b07bae658b.tar.gz
anaconda-b91b8f5b8dd0cedb329c11f7760cd6b07bae658b.tar.xz
anaconda-b91b8f5b8dd0cedb329c11f7760cd6b07bae658b.zip
Assign weights to partition requests when doing manual or kickstart installs.
Diffstat (limited to 'iw/partition_dialog_gui.py')
-rw-r--r--iw/partition_dialog_gui.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/iw/partition_dialog_gui.py b/iw/partition_dialog_gui.py
index 71c7333b3..bb4a73016 100644
--- a/iw/partition_dialog_gui.py
+++ b/iw/partition_dialog_gui.py
@@ -160,15 +160,19 @@ class PartitionEditor:
disks.append(disk)
format = fmt_class(mountpoint=mountpoint)
+ weight = self.anaconda.platform.weight(mountpoint=mountpoint,
+ fstype=format.type)
if self.isNew:
request = self.storage.newPartition(size=size,
grow=grow,
maxsize=maxsize,
primary=primary,
format=format,
- parents=disks)
+ parents=disks,
+ weight=weight)
else:
request = self.origrequest
+ request.weight = weight
if self.lukscb and self.lukscb.get_active() and \
request.format.type != "luks":
@@ -210,6 +214,7 @@ class PartitionEditor:
# preexisting partition, just set mount point and format flag
request = self.origrequest
mountpoint = self.mountCombo.get_children()[0].get_text()
+
if self.fsoptionsDict.has_key("formatcb") and \
self.fsoptionsDict["formatcb"].get_active():
fmt_class = self.fsoptionsDict["fstypeCombo"].get_active_value()
@@ -231,6 +236,9 @@ class PartitionEditor:
elif request.format.mountable:
request.format.mountpoint = mountpoint
+ request.weight = self.anaconda.platform.weight(mountpoint=mountpoint,
+ fstype=request.format.type)
+
if self.fsoptionsDict.has_key("migratecb") and \
self.fsoptionsDict["migratecb"].get_active():
actions.append(ActionMigrateFormat(request))