fix(zfs): If we're seeing more than one ZFS partition exit (#1)

This commit is contained in:
hygienic-books 2023-02-23 01:27:10 +01:00
parent e443f66832
commit fdc9046726

View File

@ -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}")'"')')