OSDN Git Service

possible fix
authorpaperbenni <paperbenni@gmail.com>
Thu, 7 May 2020 22:43:27 +0000 (00:43 +0200)
committerpaperbenni <paperbenni@gmail.com>
Thu, 7 May 2020 22:43:27 +0000 (00:43 +0200)
chrootscript.sh
systeminstall.sh

index 28a52f1..5add175 100755 (executable)
@@ -5,5 +5,4 @@ set scriptname [lindex $argv 0]
 spawn arch-chroot /mnt
 expect "archiso"
 sleep 1
-send "bash /root/instantARCH/$scriptname; exit\n"
-interact
+send "bash /root/instantARCH/$scriptname; exit\n"
\ No newline at end of file
index 8a0fca2..c5adc45 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/bash
 
+# reset working dir
 rcd() {
     cd /root/instantARCH
 }
@@ -22,16 +23,15 @@ chrootscript() {
     echo "chroot: $1" >>/tmp/instantprogress
 }
 
-chrootscript "depend/depend"
-chrootscript "depend/depend"
-chrootscript "depend/system"
-chrootscript "chroot/chroot"
-chrootscript "chroot/drivers"
-chrootscript "lang/timezone"
+chrootscript "depend/depend" &&
+    chrootscript "depend/depend" &&
+    chrootscript "depend/system" &&
+    chrootscript "chroot/chroot" &&
+    chrootscript "chroot/drivers" &&
+    chrootscript "lang/timezone"
 
 # grub: install package, install, generate config
 escript bootloader/install
-chrootscript "bootloader/config"
-
-chrootscript "user/user"
-chrootscript "network/network"
+chrootscript "bootloader/config" &&
+    chrootscript "user/user" &&
+    chrootscript "network/network"