wip
This commit is contained in:
parent
547b8aba1a
commit
cdae9002c1
1 changed files with 6 additions and 2 deletions
8
entry.sh
8
entry.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue