From fb058906a8bd59f7140464c29f1e0d80a86030e5 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:41:58 -0400 Subject: [PATCH] Ensure other vgchange succeeds too --- templates/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/install.sh b/templates/install.sh index 4f8d9d4..dfd030d 100755 --- a/templates/install.sh +++ b/templates/install.sh @@ -626,7 +626,7 @@ echo -n "Disabing potential LVM volume groups on target device... " for vg in $( pvscan | grep "${target_disk}" | awk '{ print $4 }' ); do vgchange -an ${vg} >&2 || true sleep 1 - vgchange -an ${vg} >&2 + vgchange -an ${vg} >&2 || true yes | vgremove -f ${vg} || true done echo "done."