install

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

commit ec26a5059c8524129b47efc96c4ef0f58448fb98
parent 38c7e871a506b3e6613c3d11f09fb2fbc14c074e
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Fri,  6 Jan 2017 12:13:47 +0100

Add(Boot scripts): Now installing bootscripts

Diffstat:
Mpkgs/eudev_p2/eudev_p2.py | 3++-
Mscreens/install/install.py | 10+++++++++-
2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/pkgs/eudev_p2/eudev_p2.py b/pkgs/eudev_p2/eudev_p2.py @@ -42,7 +42,8 @@ class Eudev_P2: "next": "util-linux", # Next package to install "urls": [ # Url to download the package. The first one must be morphux servers "https://install.morphux.org/packages/eudev-3.2.tar.gz", - "https://install.morphux.org/packages/udev-lfs-20140408.tar.bz2" + "https://install.morphux.org/packages/udev-lfs-20140408.tar.bz2", + "https://install.morphux.org/packages/lfs-bootscripts-20150222.tar.bz2" ] } return self.config diff --git a/screens/install/install.py b/screens/install/install.py @@ -136,6 +136,7 @@ class Install: if "KEEP_SRC" not in self.conf_lst["config"] or ("KEEP_SRC" in self.conf_lst["config"] and self.conf_lst["config"]["KEEP_SRC"] == False): self.clean_all() + self.install_bootscripts() self.dlg.msgbox("The installation is finished. Hit 'Enter' to close this dialog and reboot.", title="Success !") # Need reboot here sys.exit(1) @@ -877,4 +878,11 @@ class Install: self.dlg.infobox("Stripping binaries ...") self.exec(["/tools/bin/find /usr/lib -type f -name \*.a -exec /tools/bin/strip --strip-debug {} ';'"], shell=True, ignore=True) self.exec(["/tools/bin/find /lib /usr/lib -type f -name \*.so* -exec /tools/bin/strip --strip-unneeded {} ';'"], shell=True, ignore=True) - self.e(["/tools/bin/find /{bin,sbin} /usr/{bin,sbin,libexec} -type f -exec /tools/bin/strip --strip-all {} ';'"], shell=True, ignore=True) + + + def install_bootscripts(self): + self.dlg.infobox("Installing boot scripts ...") + os.chdir("/packages") + self.exec(["tar", "xf", "lfs-bootscripts-20150222.tar.bz2"]) + os.chdir("lfs-bootscripts-20150222") + self.exec(["make", "install"])