From ea3725c524e4c15bae9674586d81c11a59f2d0d6 Mon Sep 17 00:00:00 2001 From: Olivier Navas Date: Thu, 18 Aug 2022 19:35:27 +0200 Subject: [PATCH] Correction bug sur resize --- tasks/resize_partition.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/resize_partition.yml b/tasks/resize_partition.yml index 82c1445..0e248ee 100644 --- a/tasks/resize_partition.yml +++ b/tasks/resize_partition.yml @@ -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