aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPreston Cody <codeman@gentoo.org>2007-11-17 19:12:21 +0000
committerPreston Cody <codeman@gentoo.org>2007-11-17 19:12:21 +0000
commit7eb3acf893a0584c4268483bf5fb3d924f434a1a (patch)
tree04393fe9f1c5f3986401cf78cb1066475ae8c53e
parentadding a check after stage3 extraction or creation (diff)
downloadgli-7eb3acf893a0584c4268483bf5fb3d924f434a1a.tar.gz
gli-7eb3acf893a0584c4268483bf5fb3d924f434a1a.tar.bz2
gli-7eb3acf893a0584c4268483bf5fb3d924f434a1a.zip
require at least a / mountpoint.
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/gli/trunk@1864 f8877401-5920-0410-a79b-8e2d7e04ca0d
-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: