From e586b988f661663d2f6cb94270acd53052466ad7 Mon Sep 17 00:00:00 2001 From: Kees Cook Date: Sat, 18 Sep 2021 09:19:10 -0700 Subject: [PATCH] boot-qemu.sh: Use stdbuf instead of unbuffer To avoid needing the "expect" package, use "stdbuf" from coreutils to control output buffering. While at it, switch to line-buffering to avoid stdout/stderr mixing. --- boot-qemu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot-qemu.sh b/boot-qemu.sh index 2ab7de6..37feb6d 100755 --- a/boot-qemu.sh +++ b/boot-qemu.sh @@ -382,7 +382,7 @@ function invoke_qemu() { done fi - ${INTERACTIVE} || QEMU=(timeout --foreground "${TIMEOUT:=3m}" unbuffer "${QEMU[@]}") + ${INTERACTIVE} || QEMU=(timeout --foreground "${TIMEOUT:=3m}" stdbuf -oL -eL "${QEMU[@]}") set -x "${QEMU[@]}" \ "${QEMU_ARCH_ARGS[@]}" \