summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2012-10-08 16:51:50 -0500
committerDavid Lehman <dlehman@redhat.com>2012-10-11 12:19:00 -0500
commita9ff7890415c78c3f8c1351a0e979cb09bff0d33 (patch)
treeab6564c021b37cdf7787626d2e46bb54300f5348
parent1b0dc46f0da130a46c4299afd58c9065b89a1b61 (diff)
downloadanaconda-a9ff7890415c78c3f8c1351a0e979cb09bff0d33.tar.gz
anaconda-a9ff7890415c78c3f8c1351a0e979cb09bff0d33.tar.xz
anaconda-a9ff7890415c78c3f8c1351a0e979cb09bff0d33.zip
Don't set mountpoints of "(null)" in mountpoint selectors.
-rw-r--r--pyanaconda/ui/gui/spokes/custom.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 15d01a953..2c9df369f 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -996,7 +996,8 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
# you can't change the type of an existing device, so we
# don't need to concern ourselves with adding a new
# selector to the new page
- selector.props.mountpoint = mountpoint
+ selector.props.mountpoint = (mountpoint or
+ selector._device.format.name)
selector.props.name = (self._mountpointName(mountpoint) or
selector._device.format.name)
@@ -1112,7 +1113,8 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
self.window.show_all()
else:
if old_mountpoint:
- selector.props.mountpoint = mountpoint
+ selector.props.mountpoint = (mountpoint or
+ selector._device.format.name)
selector.props.name = (self._mountpointName(mountpoint)
or selector._device.format.name)
else: