mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 10:31:17 -03:00
23 lines
659 B
Bash
Executable file
23 lines
659 B
Bash
Executable file
#!/bin/bash -u
|
|
|
|
# shellcheck disable=SC1091
|
|
# Load configuration parameter
|
|
source ./config01.sh
|
|
|
|
# *******************************************************************************
|
|
# Deactivate all LV in the VG and close LUKS volume
|
|
# *******************************************************************************
|
|
|
|
function util_deactivate_and_close(){
|
|
echo "...Deactivating all logical volumes in volume group \"${VGNAME}\"."
|
|
vgchange -a n "${VGNAME}"
|
|
echo "...Closing LUKS volume \"${CRYPTPARTNAME}\"."
|
|
cryptsetup close "${CRYPTPARTNAME}"
|
|
cat <<- HEREDOC
|
|
|
|
...Installation process terminated..
|
|
HEREDOC
|
|
|
|
}
|
|
|
|
util_deactivate_and_close
|