This commit is contained in:
teldra 2022-02-09 14:09:46 +01:00
parent c3183eed1e
commit 5295ad8c7f

View File

@ -29,7 +29,7 @@ config() {
if ! [ "${KEY_LANG}" == "en" ]; then
if [ "${EFI}" == "1" ]; then
VGUUID=$(vgdisplay |grep UUID|awk '{print $3}')
LVUUID=$(lvdisplay ${TARGETNAME_UNDERSCORE}-root |grep UUID|awk '{print $3}')
LVUUID=$(lvdisplay "/dev/mapper/${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//-/}