Przeglądaj źródła

mklive.sh.in: install local installer if available, otherwise the host one.

Juan RP 11 lat temu
rodzic
commit
ad4c7ec381
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      mklive.sh.in

+ 6 - 0
mklive.sh.in

@@ -145,6 +145,12 @@ install_packages() {
     if [ -f $ROOTFS/usr/lib/systemd/system/NetworkManager.service ]; then
         systemd-nspawn -D $ROOTFS systemctl enable NetworkManager.service >>$LOGFILE 2>&1
     fi
+
+    if [ -x installer.sh ]; then
+        install -Dm755 installer.sh $ROOTFS/usr/sbin/void-installer
+    else
+        install -Dm755 /usr/sbin/void-installer $ROOTFS/usr/sbin/void-installer
+    fi
 }
 
 generate_initramfs() {