From f92329b782151bb972dd96aac531232c6cd7843c Mon Sep 17 00:00:00 2001 From: Suikan <26223147+suikan4github@users.noreply.github.com> Date: Fri, 2 Jul 2021 08:42:19 +0900 Subject: [PATCH] Add removing lv function at the termination of installer --- script/common/parainstall.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/script/common/parainstall.sh b/script/common/parainstall.sh index 2a81b48..3728280 100644 --- a/script/common/parainstall.sh +++ b/script/common/parainstall.sh @@ -15,6 +15,10 @@ function parainstall() { if ! ps $INSTALLER_PID > /dev/null ; then # If not exists cat <<-HEREDOC 1>&2 The installer terminated unexpectedly. + ...Delete the new logical volume "${VGNAME}-${LVROOTNAME}". + HEREDOC + lvremove -f /dev/mapper/${VGNAME}-${LVROOTNAME} + cat <<-HEREDOC 1>&2 Installation process terminated. HEREDOC