From 4c325c4491a004f91c758a80de9d75de779655cc Mon Sep 17 00:00:00 2001 From: Suikan <26223147+suikan4github@users.noreply.github.com> Date: Fri, 2 Jul 2021 08:34:41 +0900 Subject: [PATCH] Activate all logical volumes when LV already exsit This allow update-grub search other distributions in other volume --- script/common/preinstall.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/common/preinstall.sh b/script/common/preinstall.sh index 68d49ff..0e06690 100644 --- a/script/common/preinstall.sh +++ b/script/common/preinstall.sh @@ -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}