mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 02:21: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 "...Volume group \"${VGNAME}\" already exist. Skipped to create. No problem."
|
||||||
echo "...Activating all logical volumes in volume group \"${VGNAME}\"."
|
echo "...Activating all logical volumes in volume group \"${VGNAME}\"."
|
||||||
vgchange -ay
|
vgchange -ay
|
||||||
|
echo "...Scanning all logical volumes."
|
||||||
|
vgcscan
|
||||||
else
|
else
|
||||||
echo "...Initializing a physical volume on \"${CRYPTPARTNAME}\""
|
echo "...Initializing a physical volume on \"${CRYPTPARTNAME}\""
|
||||||
pvcreate /dev/mapper/"${CRYPTPARTNAME}"
|
pvcreate /dev/mapper/"${CRYPTPARTNAME}"
|
||||||
|
|
@ -262,7 +264,7 @@ function para_install_msg() {
|
||||||
# *******************************************************************************
|
# *******************************************************************************
|
||||||
|
|
||||||
function deactivate_and_close(){
|
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}"
|
vgchange -a n "${VGNAME}"
|
||||||
echo "...Closing LUKS volume \"${CRYPTPARTNAME}\"."
|
echo "...Closing LUKS volume \"${CRYPTPARTNAME}\"."
|
||||||
cryptsetup close "${CRYPTPARTNAME}"
|
cryptsetup close "${CRYPTPARTNAME}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue