From c81e42052623cb8c34efbdecb4234346356a54e1 Mon Sep 17 00:00:00 2001 From: jedi Date: Fri, 31 Jan 2020 21:22:23 +0100 Subject: [PATCH] wip --- entry.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/entry.sh b/entry.sh index fc6526b..b48b0eb 100755 --- a/entry.sh +++ b/entry.sh @@ -63,10 +63,10 @@ function first_stage(){ yes | mkfs.ext4 ${DEVICE}1 ( - echo $luks_password - echo $luks_password + echo $LUKS_PASSWORD + echo $LUKS_PASSWORD )| cryptsetup luksFormat ${DEVICE}2 - echo $luks_password | cryptsetup luksOpen ${DEVICE}2 cryptlvm + echo $LUKS_PASSWORD | cryptsetup luksOpen ${DEVICE}2 cryptlvm pvcreate /dev/mapper/cryptlvm vgcreate vg0 /dev/mapper/cryptlvm @@ -100,7 +100,6 @@ function first_stage(){ function second_stage(){ set -e - echo bar second_stage echo $TARGET echo $LVM_SIZE ( @@ -129,6 +128,8 @@ function second_stage(){ chmod 0755 $HOME/.oh-my-zsh chown -R jedi:jedi $HOME chsh --shell /bin/zsh jedi + + echo second_stage done }