wip
This commit is contained in:
parent
885f7ae0bb
commit
0c056e20b1
1 changed files with 9 additions and 1 deletions
10
entry.sh
10
entry.sh
|
@ -7,6 +7,10 @@ function first_stage(){
|
||||||
|
|
||||||
apt install debootstrap
|
apt install debootstrap
|
||||||
|
|
||||||
|
|
||||||
|
echo -n luks_password:
|
||||||
|
read -s luks_password
|
||||||
|
|
||||||
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
|
||||||
|
@ -34,7 +38,11 @@ function first_stage(){
|
||||||
|
|
||||||
echo mkfs.ext4 ${DEVICE}1
|
echo mkfs.ext4 ${DEVICE}1
|
||||||
mkfs.ext4 ${DEVICE}1
|
mkfs.ext4 ${DEVICE}1
|
||||||
echo mkfs.ext4 ${DEVICE}2
|
(
|
||||||
|
echo $luks_password
|
||||||
|
echo $luks_password
|
||||||
|
)| cryptsetup luksFormat ${DEVICE}2
|
||||||
|
echo $luks_password | cryptsetup luksOpen ${DEVICE}2 cryptlvm
|
||||||
mkfs.ext4 ${DEVICE}2
|
mkfs.ext4 ${DEVICE}2
|
||||||
mount ${DEVICE}2 $TARGET
|
mount ${DEVICE}2 $TARGET
|
||||||
echo mount ${DEVICE}2 $TARGET
|
echo mount ${DEVICE}2 $TARGET
|
||||||
|
|
Loading…
Reference in a new issue