This commit is contained in:
j3d1 2020-01-29 21:38:38 +01:00
parent 547b8aba1a
commit cdae9002c1

View file

@ -11,14 +11,18 @@ function first_stage(){
echo -n luks_password: echo -n luks_password:
read -s 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 lsblk -ftpo NAME,FSTYPE,LABEL,UUID,FSAVAIL,MOUNTPOINT
select DEVICE in $(lsblk -frpno NAME); do select DEVICE in $(lsblk -frpno NAME); do
echo using $DEVICE echo using $DEVICE
break break
done done
wipefs -a ${DEVICE}
( (
echo o echo o
echo n echo n