From cdae9002c1da8d3b748348fc33f1f556013ab992 Mon Sep 17 00:00:00 2001 From: jedi Date: Wed, 29 Jan 2020 21:38:38 +0100 Subject: [PATCH] wip --- entry.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/entry.sh b/entry.sh index f0cb5cd..46355c2 100755 --- a/entry.sh +++ b/entry.sh @@ -11,14 +11,18 @@ function first_stage(){ echo -n luks_password: read -s luks_password + if [ -b /dev/mapper/cryptlvm ]; then + cryptsetup luksClose cryptlvm + close + + wipefs -a ${DEVICE} + lsblk -ftpo NAME,FSTYPE,LABEL,UUID,FSAVAIL,MOUNTPOINT select DEVICE in $(lsblk -frpno NAME); do echo using $DEVICE break done - wipefs -a ${DEVICE} - ( echo o echo n