This commit is contained in:
teldra 2022-08-05 14:20:55 +02:00
parent 75239799ea
commit 5244f566c9
1 changed files with 3 additions and 3 deletions

View File

@ -73,8 +73,8 @@ encryption_style() {
echo "c) no keyfile (double pw enter)" #bios: 1 uefi: 2 echo "c) no keyfile (double pw enter)" #bios: 1 uefi: 2
#echo "not implemented:" #echo "not implemented:"
#echo "d) keyfile on usb" #bios: 1 uefi: 2 #echo "d) keyfile on usb" #bios: 1 uefi: 2
#echo "e) unencrypted boot" #bios: 2 uefi: 3 (hier fehlt noch eine) echo "e) unencrypted boot" #bios: 2 uefi: 3 (hier fehlt noch eine)
multiplechoice "a" "b" "c" #"d" "e" multiplechoice "a" "b" "c" "e" #"d" "e"
ENCRYPTION_STYLE="${output}" ENCRYPTION_STYLE="${output}"
if [ "${ENCRYPTION_STYLE}" == "b" ]; then if [ "${ENCRYPTION_STYLE}" == "b" ]; then
ENC=0 ENC=0
@ -126,7 +126,7 @@ do_partition() {
parted "${TARGET_PHY_ID}" unit mib -s -- mkpart primary ext4 "${start}" "$(( start + size ))" parted "${TARGET_PHY_ID}" unit mib -s -- mkpart primary ext4 "${start}" "$(( start + size ))"
sleep 2 sleep 2
mkfs.btrfs -q -f "${TARGET_PHY_ID}-part1" mkfs.btrfs -q -f "${TARGET_PHY_ID}-part1"
start="$(( start + size ))" start="$(( start + size + start ))"
TARGET_PART="2" TARGET_PART="2"
fi fi
parted "${TARGET_PHY_ID}" unit mib -s -- mkpart primary ext4 "$start" -1s parted "${TARGET_PHY_ID}" unit mib -s -- mkpart primary ext4 "$start" -1s