From 8ba58e88c062a97de3ba87495a1503f064e0f782 Mon Sep 17 00:00:00 2001 From: jedi Date: Wed, 29 Jan 2020 22:32:34 +0100 Subject: [PATCH] wip --- entry.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(){