summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-03-20 15:27:18 -0400
committerChris Lumens <clumens@redhat.com>2009-03-20 15:28:27 -0400
commitff59b716da6b3760e5b8a943d911b4b56a10350b (patch)
tree7e796cb41c0d28de7ae2d553854268b6e11868c0 /textw
parent1edec1afdf9e98b912048f35c8da4970166e7c7f (diff)
downloadanaconda-ff59b716da6b3760e5b8a943d911b4b56a10350b.tar.gz
anaconda-ff59b716da6b3760e5b8a943d911b4b56a10350b.tar.xz
anaconda-ff59b716da6b3760e5b8a943d911b4b56a10350b.zip
Fix text mode autopartitioning (#491282).
(1) We need to use the device's name instead of its path for clearPartDisks. (2) We need to set doAutoPart since text mode is autopart only.
Diffstat (limited to 'textw')
-rw-r--r--textw/partition_text.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/textw/partition_text.py b/textw/partition_text.py
index d74c7d491..472a5cea3 100644
--- a/textw/partition_text.py
+++ b/textw/partition_text.py
@@ -106,7 +106,7 @@ class PartitionTypeWindow:
selected = 0
sizestr = "%8.0f MB" % (disk.size,)
- diskdesc = "%6s %s (%s)" % (disk.path, sizestr, model[:24],)
+ diskdesc = "%6s %s (%s)" % (disk.name, sizestr, model[:23],)
drivelist.append(diskdesc, selected = selected)
@@ -139,6 +139,7 @@ class PartitionTypeWindow:
continue
anaconda.dispatch.skipStep("autopartitionexecute", skip = 0)
+ anaconda.id.storage.doAutoPart = True
anaconda.id.storage.clearPartType = partmethod_ans
anaconda.id.storage.clearPartDisks = sel
break