install

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

commit f895be240817a8b59a464e207c62b7e96167af12
parent 4a1cce9fe7716a257e63a7346f77a924254924ce
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Mon, 19 Dec 2016 18:32:18 +0100

Add(Support for MERGE_USR option):

Now merging /bin with /usr/bin
Now merging /sbin with /usr/sbin

Diffstat:
Mscreens/install/install.py | 11++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/screens/install/install.py b/screens/install/install.py @@ -113,7 +113,7 @@ class Install: self.pkg_download(self.pkgs) # If the installation require a 2-Phase install - if "BIN_INSTALL" in self.conf_lst["config"] and self.conf_lst["config"]["TMP_INSTALL"]: + if "BIN_INSTALL" in self.conf_lst["config"] and self.conf_lst["config"]["BIN_INSTALL"] == False: # Create the tools directory self.exec(["mkdir", "-v", self.mnt_point + "/tools"]) # Link between the host and the install @@ -725,6 +725,15 @@ class Install: self.exec(["mkdir", "-pv", path + "usr/local/games"]) self.exec(["mkdir", "-pv", path + "usr/share/games"]) + if "MERGE_USR" in self.conf_lst["config"] and self.conf_lst["config"]["MERGE_USR"] == True: + # Removing previously created directories + self.e(["rm", "-rf", path + "bin"]) + self.e(["rm", "-rf", path + "sbin"]) + + # Link directories + self.e(["ln", "-sv", "/usr/bin", "/bin"]) + self.e(["ln", "-sv", "/usr/sbin", "/sbin"]) + # This function does links vital to compilation def links(self): self.dlg.infobox("Linking files...")