diff --git a/setup.sh b/setup.sh index addbd66..9244e30 100644 --- a/setup.sh +++ b/setup.sh @@ -25,7 +25,7 @@ width=`tput cols` height=`tput lines` window=$((height - 5)) -if [ -e "/sys/firmware/efi/efivars" ]; then efi="1" else efi="0"; fi +if [ -e "/sys/firmware/efi/efivars" ]; then efi="1"; echo -e "\nUEFI detected..." else efi="0"; echo -e "\nBIOS detected..."; fi # gather input at the start devices=""; for device in $(ls /dev/disk/by-id | grep -v part); do devices="$devices $device off"; done @@ -113,7 +113,7 @@ if [ "$efi" = "1" ]; then for disk in `echo "$boots"`; do echo "" echo "Creating boot partitions for device $disk..." - errors=`sgdisk -n2:1M:+512M -t2:EF00 /dev/disk/by-id/$disk 2>&1 1>/dev/null && sgdisk -n3:0:+512M -t3:BF01 /dev/disk/by-id/$disk 2>&1 1>/dev/null` + errors=`sgdisk -n2:1M:+512M -t2:EF00 /dev/disk/by-id/$disk 2>&1 1>/dev/null` if ! [ "$?" = "0" ]; then echo "Failed to create boot partition for device $disk - $errors" exit 3