This commit is contained in:
j3d1 2020-01-31 21:22:23 +01:00
parent 4a54c47083
commit c81e420526

View file

@ -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
}