aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/fe/dialog/gli-dialog.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/fe/dialog/gli-dialog.py b/src/fe/dialog/gli-dialog.py
index bbcac15..42fb5d0 100755
--- a/src/fe/dialog/gli-dialog.py
+++ b/src/fe/dialog/gli-dialog.py
@@ -335,6 +335,13 @@ Press OK to continue""")
choices.append((_(u"Add"),_(u"Define a new mountpoint")))
code, choice = self._d.menu(_(u"Please define the mountpoints of your partitions for the new system. At minimum, a / mountpoint must be defined. Defining /boot and /home mountpoints is recommended."),choices=choices, cancel=_(u"Save and Continue"), height=18, width=65)
if code == self._DLG_CANCEL:
+ #Apply a check here for the existence of at least a root partition.
+ foundroot = False
+ for mount in mounts:
+ if mount['mountpoint'] == "/":
+ foundroot = True
+ if not foundroot:
+ continue
try:
self._install_profile.set_mounts(mounts)
except: