Add removing lv function

at the termination of installer
This commit is contained in:
Suikan 2021-07-02 08:42:19 +09:00
parent 4c325c4491
commit f92329b782

View file

@ -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