summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorBrian C. Lane <bcl@redhat.com>2010-05-18 11:53:42 -0700
committerBrian C. Lane <bcl@redhat.com>2010-05-20 15:29:49 -0700
commit4daaa87180a52b1f52469a5046b2ec43668f3208 (patch)
tree7e174f17ae39028cbde3dc4ffb36969a4edc32e3 /iw
parent1c4026e06fbfcc4ff6bcf37d76325daf969fdc9f (diff)
downloadanaconda-4daaa87180a52b1f52469a5046b2ec43668f3208.tar.gz
anaconda-4daaa87180a52b1f52469a5046b2ec43668f3208.tar.xz
anaconda-4daaa87180a52b1f52469a5046b2ec43668f3208.zip
Check for sane mountpoint in lvm dialog (#592185)
Resolves: rhbz#592185 Display a message to the user when the mountpoint name they have chosen is invalid. Skip checking when the format type has no mountpoint.
Diffstat (limited to 'iw')
-rw-r--r--iw/lvm_dialog_gui.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/iw/lvm_dialog_gui.py b/iw/lvm_dialog_gui.py
index cebb8e9bf..d906852ac 100644
--- a/iw/lvm_dialog_gui.py
+++ b/iw/lvm_dialog_gui.py
@@ -31,6 +31,7 @@ from partition_ui_helpers_gui import *
from constants import *
from storage.devices import *
from storage.deviceaction import *
+from partIntfHelpers import *
import gettext
_ = lambda x: gettext.ldgettext("anaconda", x)
@@ -593,8 +594,14 @@ class VolumeGroupEditor:
fmt_class = self.fsoptionsDict["fstypeCombo"].get_active_value()
mountpoint = mountCombo.get_children()[0].get_text().strip()
- if mountpoint == _("<Not Applicable>"):
- mountpoint = ""
+ (sensitive,) = mountCombo.get_properties('sensitive')
+ if sensitive and mountpoint:
+ msg = sanityCheckMountPoint(mountpoint)
+ if msg:
+ self.intf.messageWindow(_("Mount Point Error"),
+ msg,
+ custom_icon="error")
+ continue
# validate logical volume name
lvname = lvnameentry.get_text().strip()