From 4f55946cba51a6c2a1008ce728e67ed2bdb93af6 Mon Sep 17 00:00:00 2001 From: natemaia Date: Sun, 21 Apr 2019 13:52:13 -0700 Subject: [PATCH] Silence background process --- archlabs-installer | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/archlabs-installer b/archlabs-installer index 825d23d..3636316 100755 --- a/archlabs-installer +++ b/archlabs-installer @@ -5,7 +5,7 @@ # Some ideas and code reworked from other resources # AIF, Cnichi, Calamares, Arch Wiki.. Credit where credit is due -VER="2.0.45" # installer version +VER="2.0.46" # installer version DIST="ArchLabs" # linux distributor MNT="/mnt" # install mountpoint ANS="/tmp/ans" # dialog answer file @@ -1567,7 +1567,6 @@ install_packages() chrun "pacman -Syyu --noconfirm" [[ $rmpkg ]] && chrun "pacman -Rns $rmpkg --noconfirm" chrun "pacman -S iputils --noconfirm" - chrun "pacman -Q xorg-xinit 2>/dev/null || pacman -S $BASE_PKGS --needed --noconfirm" chrun "pacman -S $inpkg --needed --noconfirm" 2>$ERR errshow 1 "pacman -S $inpkg --needed --noconfirm" @@ -1651,7 +1650,7 @@ install_background() yesno "Background Install" "\nSome parts of the install can be done in the background now, base unpack, mirrorlist sort, system update, and base packages.\n\nDo you want to start the background process?\n" || return 0 rsync -a /run/archiso/sfs/airootfs/ $MNT/ & RSYNC_PID=$! - ( install_mirrorlist "$MNT/etc/pacman.d/mirrorlist" && chrun "pacman -Syyu $BASE_PKGS --needed --noconfirm" ) & + ( install_mirrorlist "$MNT/etc/pacman.d/mirrorlist" && chrun "pacman -Syyu $BASE_PKGS --needed --noconfirm" >/dev/null 2>&1 ) & MIRROR_PID=$! trap "kill $RSYNC_PID 2>/dev/null; kill $MIRROR_PID 2>/dev/null" EXIT fi