install

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

commit 4a5dbcaeaae02ffbc87ea5ae31c334c9cf839d41
parent 381b83b9cb8914fff02049cb8cb295e5647949b4
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Mon, 19 Dec 2016 17:17:55 +0100

Fix(Dialog binary over chroot) & Fix(Shell link required for exec)

Diffstat:
Mscreens/install/install.py | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/screens/install/install.py b/screens/install/install.py @@ -683,8 +683,8 @@ class Install: self.dlg.infobox("Chrooting...") os.chroot(self.mnt_point) os.environ["PATH"] = "/bin:/usr/bin:/usr/sbin:/tools/bin" - self.dlg = Dialog(dialog="dialog", autowidgetsize=True) - self.dlg.set_background_title(title + ", version " + version) + self.dlg = Dialog(dialog="/tools/bin/dialog", autowidgetsize=True) + self.dlg.set_background_title("Morphux Installer" + ", version " + "1.0") # Function that create the basic distribution skeleton def skeleton(self, path = "/"): @@ -730,6 +730,7 @@ class Install: # This function does links vital to compilation def links(self): self.dlg.infobox("Linking files...") + self.exec(["ln", "-sv", "/tools/bin/sh", "/bin/sh"]) self.exec(["ln", "-sv", "/tools/bin/{bash,cat,echo,pwd,stty}", "/bin"], shell=True) self.exec(["ln", "-sv", "/tools/bin/perl", "/usr/bin"]) self.exec(["ln", "-sv", "/tools/lib/libgcc_s.so{,.1}", "/usr/lib"], shell=True)