diff --git a/setup.sh b/setup.sh index f869c86..e996d23 100644 --- a/setup.sh +++ b/setup.sh @@ -112,6 +112,10 @@ function select_part () { if we_have_exactly_one_part "${part_type}" "${parts}"; then part="${parts}" else + if [[ "${part_type}" == 'zfs' ]]; then + 2> printf -- '%s\n' 'We have more than one ZFS (BF00) partition to pick for installation. Cowardly exiting ...' + exit 77 + fi printf -- '%s\n' 'Which '"${part_type^^}"' partition do you want us to use?' while IFS= read -r found_part; do enriched_parts+=("'${found_part}'"' (aka ID '"'$(get_drive_id "${found_part}")'"')')