From: Michael Prokop Date: Fri, 5 Mar 2021 16:30:39 +0000 (+0100) Subject: Log efibootmgr errors to efibootmgr.error X-Git-Tag: v0.16.0~1 X-Git-Url: https://git.grml.org/?a=commitdiff_plain;h=18075669c17b8dc94237df0a48b760a56decd12d;p=grml-hwinfo.git Log efibootmgr errors to efibootmgr.error On non-UEFI systems, we get an ugly error message: | root@grml ~ # efibootmgr -v >/dev/null | Could not parse device path: Invalid argument Instead log stderr output to efibootmgr.error --- diff --git a/grml-hwinfo b/grml-hwinfo index ab2b295..4e1d9d5 100755 --- a/grml-hwinfo +++ b/grml-hwinfo @@ -241,7 +241,7 @@ cd "${OUTDIR}" || exit 1 exectest lscpu && lscpu -e > ./lscpu_extended # EFI - exectest efibootmgr && efibootmgr -v > efibootmgr + exectest efibootmgr && efibootmgr -v >efibootmgr 2>efibootmgr.error # net stuff, net-tools: exectest ifconfig && ifconfig -v -a > ./ifconfig