Correction bug sur resize

This commit is contained in:
Navas 2022-08-18 19:35:27 +02:00
parent 0bc84e3643
commit ea3725c524
1 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,8 @@
pv=$(pvdisplay -C -o pv_name -S vg_name=$vg | tail -n -1 | awk '{ print $1 }')
echo "$vg est dans le PV $pv"
cryptsetup isLuks $pv
if [ $? ]
lsblk -pP $pv | grep $pv | grep 'TYPE="crypt"'
if [ $? -eq 0 ]
then
echo "$pv est chiffre, agrandissement du disque chiffre"
cryptsetup resize $pv