mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 10:31:17 -03:00
Test update.
This commit is contained in:
parent
4699f87cc7
commit
ed48590821
3 changed files with 40 additions and 16 deletions
23
script/test/util_deactivate_and_close.sh
Executable file
23
script/test/util_deactivate_and_close.sh
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
#!/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue