From 7eb3acf893a0584c4268483bf5fb3d924f434a1a Mon Sep 17 00:00:00 2001 From: Preston Cody Date: Sat, 17 Nov 2007 19:12:21 +0000 Subject: require at least a / mountpoint. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/gli/trunk@1864 f8877401-5920-0410-a79b-8e2d7e04ca0d --- src/fe/dialog/gli-dialog.py | 7 +++++++ 1 file changed, 7 insertions(+) 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: -- cgit v1.2.3-65-gdbad