Skip to content

Commit

Permalink
installer: redirect debug msgs to /dev/tty8.
Browse files Browse the repository at this point in the history
/dev/tty7 might be used by the X server.
  • Loading branch information
Juan RP committed Dec 15, 2014
1 parent f3dea54 commit 8e0080b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions installer.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8e0080b

Please sign in to comment.