This commit is contained in:
teldra 2022-02-09 14:27:16 +01:00
parent f153d0a41f
commit 45a4319bf8

View File

@ -30,7 +30,7 @@ config() {
if [ "${EFI}" == "1" ]; then
set -x
VGUUID=$(vgdisplay |grep UUID|awk '{print $3}')
LVUUID=$(lvdisplay "/dev/mapper/${TARGETNAME_UNDERSCORE}-root" |grep UUID|awk '{print $3}')
LVUUID=$(lvdisplay "/dev/mapper/vg_${TARGETNAME_UNDERSCORE}-root" |grep UUID|awk '{print $3}')
rl=$(basename $(readlink "${TARGET_PHY_ID}-part${TARGET_PART}"))
TMP=$(lsblk -o NAME,UUID -l|grep "${rl}" | awk '{print $2}')
CRYPTUUID=${TMP//-/}