fix
This commit is contained in:
parent
370d6393a3
commit
f04fe93a63
1 changed files with 8 additions and 4 deletions
|
@ -61,8 +61,10 @@ sgdisk -a 2048 -n 3::+8G -c 3:"Linux swap" -t 3:8200 ${device}
|
|||
sgdisk -a 2048 -n 4:: -c 4:"Linux filesystem" -t 4:8300 ${device}
|
||||
|
||||
if [ "${verschluesselung}" == "y" ]; then
|
||||
cryptsetup -c aes-xts-plain64 -y -s 512 luksFormat /dev/sda4
|
||||
cryptsetup luksOpen /dev/sda4 luks0
|
||||
cryptsetup -c aes-xts-plain64 -y -s 512 luksFormat ${device}${rootpartitionnummer} <<EOT
|
||||
YES
|
||||
EOT
|
||||
cryptsetup luksOpen ${device}${rootpartitionnummer} luks0
|
||||
fi
|
||||
|
||||
}
|
||||
|
@ -75,8 +77,10 @@ sgdisk -a 2048 -n 2::+1G -c 2:"EFI Boot Partition" -t 2:ef00 ${device}
|
|||
sgdisk -a 2048 -n 3:: -c 4:"Linux filesystem" -t 3:8300 ${device}
|
||||
|
||||
if [ "${verschluesselung}" == "y" ]; then
|
||||
cryptsetup -c aes-xts-plain64 -y -s 512 luksFormat /dev/sda4
|
||||
cryptsetup luksOpen /dev/sda4 luks0
|
||||
cryptsetup -c aes-xts-plain64 -y -s 512 luksFormat ${device}${rootpartitionnummer} <<EOT
|
||||
YES
|
||||
EOT
|
||||
cryptsetup luksOpen ${device}${rootpartitionnummer} luks0
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue