install

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

commit 07feafc16aecadd4b7ef7ce6ad9c22189e086df3
parent 582f7eebaf6138e28938ab96da02a8eede8a383b
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Tue, 22 Nov 2016 18:03:09 +0100

Fix(Partitionning): Now saving the layout in the internal configuration object.

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

diff --git a/screens/conf_install/conf_install.py b/screens/conf_install/conf_install.py @@ -883,6 +883,8 @@ Are you sure to continue?") def preview_partitionning(self): # Choices list choices = [] + # Conf result, used internally + result_conf = [] # Fill the choices list with disks and partitions for k, d in self.disks.items(): @@ -900,6 +902,7 @@ Are you sure to continue?") part_name = p["part"].replace("/dev/", "") if p["flag"]: choices.append(("part:"+ p["part"], "| "+ str(i) +" "+ part_name +"\t\t"+ p["flag"] +"\t"+ p["size"] +"\t"+ p["type"])) + result_conf.append({"disk": k, "part": p["part"], "type": p["type"], "flag": p["flag"], "size": p["size"]}) i = i + 1 # Actual call to the menu @@ -911,6 +914,9 @@ Are you sure to continue?") # If the user hit cancel, we return to the partition menu if code == "cancel": return self.partitionning() + + # All good, we save the configuration + self.conf_lst["partitionning.layout"] = result_conf return 0