install

installer
Log | Files | Refs | README | LICENSE | git clone https://git.ne02ptzero.me/git/install

commit e2c33b711cf178e237e104ef8e1a3a3a28fcd362
parent 9251f751c52e47aac9e2c077641974a6fa6678d6
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Mon, 21 Nov 2016 05:02:43 +0100

Fix(Guided partitionning): Add a warning and remove a partitionning option that made no sense.

Diffstat:
Mscreens/conf_install/conf_install.py | 21+++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)

diff --git a/screens/conf_install/conf_install.py b/screens/conf_install/conf_install.py @@ -597,20 +597,29 @@ class Conf_Install: if code == "cancel": return self.partitionning() + # If the choosen disk has partitions, we warn the user + if len(self.disks[tag]["part"]): + code = self.dlg.yesno("This disk already have partitions.\n\ +They will be totally wiped with the install.\n\ +YOU WILL LOOSE ANY DATA THAT'S ON THE DISK.\n\ +Are you sure to continue?") + # If the user hit 'No', we recall this very function + if code == "cancel": + self.guided_partitionning(encrypted) + # Save the choosen disk self.conf_lst["partitionning.disk"] = tag # Choices for guided partitionning choices = [ - ("One partition", "Use one partition for everything. Strongly advised for unexperienced users"), - ("Three partitions", "Root, boot and swap partition"), - ("Four partitions", "Root, boot, /home and swap partition"), - ("Five partitions", "Root, boot, /home, /tmp and swap partition"), - ("Eight partitions", "Root, boot, /home, /usr, /opt, /tmp, /usr/src and swap partition"), + ("Three partitions", "Root, boot and swap partitions. Strongly advised for unexperienced users."), + ("Four partitions", "Root, boot, /home and swap partitions"), + ("Five partitions", "Root, boot, /home, /tmp and swap partitions"), + ("Eight partitions", "Root, boot, /home, /usr, /opt, /tmp, /usr/src and swap partitions"), ] # Actual call to the menu - code, tag = self.dlg.menu("Choose a partitionning method", choices=choices, title="Partitionning") + code, tag = self.dlg.menu("Choose a partitionning method:", choices=choices, title="Partitionning") # If the user hit cancel, we recall this function. if code == "cancel":