Suppress output to stderr
This commit is contained in:
parent
f62972175d
commit
8ba9c8c5bd
|
@ -631,13 +631,13 @@ for vg in $( pvscan | grep "${target_disk}" | awk '{ print $4 }' ); do
|
||||||
vgchange -an ${vg} >&2 || true
|
vgchange -an ${vg} >&2 || true
|
||||||
sleep 1
|
sleep 1
|
||||||
vgchange -an ${vg} >&2 || true
|
vgchange -an ${vg} >&2 || true
|
||||||
yes | vgremove -f ${vg} || true
|
yes | vgremove -f ${vg} >&2 || true
|
||||||
done
|
done
|
||||||
echo "done."
|
echo "done."
|
||||||
|
|
||||||
echo -n "Removing existing LVM physical volumes... "
|
echo -n "Removing existing LVM physical volumes... "
|
||||||
for pv in $( pvscan | grep "${target_disk}" | awk '{ print $2 }' ); do
|
for pv in $( pvscan | grep "${target_disk}" | awk '{ print $2 }' ); do
|
||||||
yes | pvremove -f ${pv} || true
|
yes | pvremove -f ${pv} >&2 || true
|
||||||
done
|
done
|
||||||
echo "done."
|
echo "done."
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue