Activate all logical volumes when LV already exsit

This allow update-grub search other
distributions in other volume
This commit is contained in:
Suikan 2021-07-02 08:34:41 +09:00
parent 97e944a7ea
commit 4c325c4491

View file

@ -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}