diff --git a/entry.sh b/entry.sh index b903ae5..fcc4156 100755 --- a/entry.sh +++ b/entry.sh @@ -67,8 +67,8 @@ function first_stage(){ mount ${DEVICE}1 $TARGET/boot echo mount ${DEVICE}1 $TARGET/boot genfstab -U $TARGET | tee $TARGET/etc/fstab - lsblk -lpo NAME,UUID | grep $DEVICE | awk '{print $1}' - echo cryptlvm UID none luks > $TARGET/etc/crypttab + UUID=$(lsblk -lpo NAME,UUID | grep ${DEVICE}2 | awk '{print $1}') + echo cryptlvm UID=${UUID} none luks > $TARGET/etc/crypttab } function second_stage(){