mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 10:31:17 -03:00
Add vgscan after opening existing LUKS vokume
For the confirmation for the operator.
This commit is contained in:
parent
1c707ff903
commit
062253981d
1 changed files with 3 additions and 1 deletions
|
|
@ -175,6 +175,8 @@ function pre_install() {
|
|||
echo "...Volume group \"${VGNAME}\" already exist. Skipped to create. No problem."
|
||||
echo "...Activating all logical volumes in volume group \"${VGNAME}\"."
|
||||
vgchange -ay
|
||||
echo "...Scanning all logical volumes."
|
||||
vgcscan
|
||||
else
|
||||
echo "...Initializing a physical volume on \"${CRYPTPARTNAME}\""
|
||||
pvcreate /dev/mapper/"${CRYPTPARTNAME}"
|
||||
|
|
@ -262,7 +264,7 @@ function para_install_msg() {
|
|||
# *******************************************************************************
|
||||
|
||||
function deactivate_and_close(){
|
||||
echo "...Deactivate all logical volumes in volume group \"${VGNAME}\"."
|
||||
echo "...Deactivating all logical volumes in volume group \"${VGNAME}\"."
|
||||
vgchange -a n "${VGNAME}"
|
||||
echo "...Closing LUKS volume \"${CRYPTPARTNAME}\"."
|
||||
cryptsetup close "${CRYPTPARTNAME}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue