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