mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 02:21:17 -03:00
Activate all logical volumes when LV already exsit
This allow update-grub search other distributions in other volume
This commit is contained in:
parent
97e944a7ea
commit
4c325c4491
1 changed files with 2 additions and 0 deletions
|
|
@ -61,6 +61,8 @@ function pre_install() {
|
|||
# Check volume group ${VGNAME} exist or not
|
||||
if vgdisplay -s ${VGNAME} &> /dev/null ; then # if exist
|
||||
echo "...Volume group ${VGNAME} already exist. Skipped to create. No problem."
|
||||
echo "...Activate all logical volume in volume group ${VGNAME}."
|
||||
vgchange -ay
|
||||
else
|
||||
echo "...Initialize a physical volume on \"${CRYPTPARTNAME}\""
|
||||
pvcreate /dev/mapper/${CRYPTPARTNAME}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue