don't show output on tty

This commit is contained in:
Tobias Powalowski 2022-04-04 09:26:40 +02:00
parent ec30a1b452
commit 22389f737b

View file

@ -50,9 +50,9 @@ run_mkinitcpio() {
chroot_mount
echo "Initramfs progress ..." > /tmp/mkinitcpio.log
if [[ "${RUNNING_ARCH}" == "aarch64" ]]; then
chroot "${DESTDIR}" /usr/bin/mkinitcpio -p "${KERNELPKG}"-"${RUNNING_ARCH}" | tee -a "${LOG}" /tmp/mkinitcpio.log
chroot "${DESTDIR}" /usr/bin/mkinitcpio -p "${KERNELPKG}"-"${RUNNING_ARCH}" | tee -a "${LOG}" /tmp/mkinitcpio.log >/dev/null 2>&1
else
chroot "${DESTDIR}" /usr/bin/mkinitcpio -p "${KERNELPKG}" | tee -a "${LOG}" /tmp/mkinitcpio.log
chroot "${DESTDIR}" /usr/bin/mkinitcpio -p "${KERNELPKG}" | tee -a "${LOG}" /tmp/mkinitcpio.log >/dev/null 2>&1
fi
chroot_umount
}