mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 02:21:17 -03:00
Add volume closing process
on unexpected finijsh of GUI/TUI installer.
This commit is contained in:
parent
7ebd7fc535
commit
5cbe95252c
1 changed files with 6 additions and 1 deletions
|
|
@ -14,12 +14,17 @@ function parainstall() {
|
|||
# Check if installer still exist
|
||||
if ! ps $INSTALLER_PID > /dev/null ; then # If not exists
|
||||
cat <<-HEREDOC 1>&2
|
||||
...The installer terminated unexpectedly.
|
||||
***** ERROR : The GUI/TUI installer terminated unexpectedly. *****
|
||||
...Delete the new logical volume "${VGNAME}-${LVROOTNAME}".
|
||||
HEREDOC
|
||||
lvremove -f /dev/mapper/${VGNAME}-${LVROOTNAME}
|
||||
echo "...Deactivate all logical volumes in volume group \"${VGNAME}\"."
|
||||
vgchange -a n ${VGNAME}
|
||||
echo "...Close LUKS volume \"${CRYPTPARTNAME}\"."
|
||||
cryptsetup close ${CRYPTPARTNAME}
|
||||
cat <<-HEREDOC 1>&2
|
||||
|
||||
...The new logical volume is deleted. You can start Kaiten-yaki again.
|
||||
...Installation process terminated.
|
||||
HEREDOC
|
||||
return 1 # with error status
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue