From d326b0fbf45edfe87f6a02dcefa9a0be8ad2bbae Mon Sep 17 00:00:00 2001 From: natemaia Date: Sat, 2 Nov 2019 18:49:31 -0700 Subject: [PATCH] Fix: missing boot partition type being passed to part_auto() --- archlabs-installer | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/archlabs-installer b/archlabs-installer index b9847d9..0814f01 100755 --- a/archlabs-installer +++ b/archlabs-installer @@ -8,7 +8,7 @@ # check for syntax errors # set -n -VER=2.1.4 +VER=2.1.5 # default values { @@ -586,7 +586,7 @@ part_menu() elif [[ $choice == 'shrink' ]]; then part_shrink "$device" elif [[ $choice == 'auto' ]]; then - local root_size txt label boot_fs + local root_size txt label boot_fs boot_type root_size=$(lsblk -lno SIZE "$device" | awk 'NR == 1 {if ($1 ~ "G") {sub(/G/, ""); print ($1 * 1000 - 512) / 1000 "G"} else {sub(/M/, ""); print ($1 - 512) "M"}}') txt="\nWARNING:\n\nALL data on $device will be destroyed and the following partitions will be created\n\n- " if [[ $SYS == 'BIOS' ]]; then @@ -597,7 +597,7 @@ part_menu() txt+="A $boot_fs efi boot partition (512M)\n- " fi txt+="An ext4 partition using all remaining space ($root_size)\n\nDo you want to continue?\n" - yesno "Auto Partition" "$txt" && part_auto "$device" "$label" "$boot_fs" "$root_size" + yesno "Auto Partition" "$txt" && part_auto "$device" "$label" "$boot_fs" "$root_size" "$boot_type" else clear tput cnorm