wip
This commit is contained in:
parent
4a54c47083
commit
c81e420526
1 changed files with 5 additions and 4 deletions
9
entry.sh
9
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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue