From 8ba9c8c5bd4ef4d2c140b9ff9b0defe87c705466 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:41:58 -0400 Subject: [PATCH] Suppress output to stderr --- templates/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/install.sh b/templates/install.sh index 3f10367..073a2b1 100755 --- a/templates/install.sh +++ b/templates/install.sh @@ -631,13 +631,13 @@ for vg in $( pvscan | grep "${target_disk}" | awk '{ print $4 }' ); do vgchange -an ${vg} >&2 || true sleep 1 vgchange -an ${vg} >&2 || true - yes | vgremove -f ${vg} || true + yes | vgremove -f ${vg} >&2 || true done echo "done." echo -n "Removing existing LVM physical volumes... " for pv in $( pvscan | grep "${target_disk}" | awk '{ print $2 }' ); do - yes | pvremove -f ${pv} || true + yes | pvremove -f ${pv} >&2 || true done echo "done."