Parcourir la source

installer: redirect debug msgs to /dev/tty8.

/dev/tty7 might be used by the X server.
Juan RP il y a 10 ans
Parent
commit
8e0080b720
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      installer.sh.in

+ 4 - 4
installer.sh.in

@@ -39,7 +39,7 @@ FILESYSTEMS_DONE=
 SYSTEMD_INIT=
 
 TARGETDIR=/mnt/target
-LOG=/dev/tty7
+LOG=/dev/tty8
 CONF_FILE=/tmp/.void-installer.conf
 if [ ! -f $CONF_FILE ]; then
     touch -f $CONF_FILE
@@ -767,7 +767,7 @@ umount_filesystems() {
 }
 
 copy_rootfs() {
-    DIALOG --title "Check /dev/tty7 for details" \
+    DIALOG --title "Check $LOG for details" \
         --infobox "Copying live image to target rootfs, please wait ..." 4 60
     LANG=C cp -axvnu / $TARGETDIR >$LOG 2>&1
     if [ $? -ne 0 ]; then
@@ -846,11 +846,11 @@ ${BOLD}Do you want to continue?${RESET}" 20 80 || return
         # Remove live user.
         echo "Removing $USERNAME live user from targetdir ..." >$LOG
         chroot $TARGETDIR userdel -r $USERNAME >$LOG 2>&1
-        DIALOG --title "Check /dev/tty7 for details" \
+        DIALOG --title "Check $LOG for details" \
             --infobox "Rebuilding initramfs for target ..." 4 60
         echo "Rebuilding initramfs for target ..." >$LOG
         chroot $TARGETDIR dracut --force >>$LOG 2>&1
-        DIALOG --title "Check /dev/tty7 for details" \
+        DIALOG --title "Check $LOG for details" \
             --infobox "Removing temporary packages from target ..." 4 60
         echo "Removing temporary packages from target ..." >$LOG
         xbps-remove -r $TARGETDIR -Ry dialog >>$LOG 2>&1