fix
This commit is contained in:
parent
142bf5690f
commit
c63a9ac6a2
1 changed files with 3 additions and 0 deletions
|
@ -61,6 +61,7 @@ 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}
|
sgdisk -a 2048 -n 4:: -c 4:"Linux filesystem" -t 4:8300 ${device}
|
||||||
|
|
||||||
if [ "${verschluesselung}" == "y" ]; then
|
if [ "${verschluesselung}" == "y" ]; then
|
||||||
|
echo "Bitte groß YES schreiben"
|
||||||
cryptsetup -c aes-xts-plain64 -y -s 512 luksFormat ${device}${rootpartitionnummer}
|
cryptsetup -c aes-xts-plain64 -y -s 512 luksFormat ${device}${rootpartitionnummer}
|
||||||
cryptsetup luksOpen ${device}${rootpartitionnummer} luks0
|
cryptsetup luksOpen ${device}${rootpartitionnummer} luks0
|
||||||
deviceluks="/dev/mapper/luks0"
|
deviceluks="/dev/mapper/luks0"
|
||||||
|
@ -76,6 +77,7 @@ 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}
|
sgdisk -a 2048 -n 3:: -c 4:"Linux filesystem" -t 3:8300 ${device}
|
||||||
|
|
||||||
if [ "${verschluesselung}" == "y" ]; then
|
if [ "${verschluesselung}" == "y" ]; then
|
||||||
|
echo "Bitte groß YES schreiben"
|
||||||
cryptsetup -c aes-xts-plain64 -y -s 512 luksFormat ${device}${rootpartitionnummer}
|
cryptsetup -c aes-xts-plain64 -y -s 512 luksFormat ${device}${rootpartitionnummer}
|
||||||
cryptsetup luksOpen ${device}${rootpartitionnummer} luks0
|
cryptsetup luksOpen ${device}${rootpartitionnummer} luks0
|
||||||
deviceluks="/dev/mapper/luks0"
|
deviceluks="/dev/mapper/luks0"
|
||||||
|
@ -366,6 +368,7 @@ if [ "${verschluesselung}" == "y" ]; then
|
||||||
else
|
else
|
||||||
mkfs.btrfs -f -m single ${device}${rootpartitionnummer}
|
mkfs.btrfs -f -m single ${device}${rootpartitionnummer}
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
btrfs filesystem show
|
btrfs filesystem show
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue