From 1336848e9eafdc5b53dc31dfe6b15cc57def7642 Mon Sep 17 00:00:00 2001 From: jedi Date: Wed, 29 Jan 2020 21:42:06 +0100 Subject: [PATCH] wip --- entry.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/entry.sh b/entry.sh index 246ef67..b49ff76 100755 --- a/entry.sh +++ b/entry.sh @@ -11,11 +11,6 @@ function first_stage(){ echo -n luks_password: read -s luks_password - if [[ -b /dev/mapper/cryptlvm ]]; then - cryptsetup luksClose cryptlvm - fi - - wipefs -a ${DEVICE} lsblk -ftpo NAME,FSTYPE,LABEL,UUID,FSAVAIL,MOUNTPOINT select DEVICE in $(lsblk -frpno NAME); do @@ -23,6 +18,12 @@ function first_stage(){ break done + if [ -b /dev/mapper/cryptlvm ]; then + cryptsetup luksClose cryptlvm + fi + + wipefs -a ${DEVICE} + ( echo o echo n