diff --git a/usr/lib/archboot/installer/blockdevices.sh b/usr/lib/archboot/installer/blockdevices.sh index 8275d6025..22fa5ebaf 100644 --- a/usr/lib/archboot/installer/blockdevices.sh +++ b/usr/lib/archboot/installer/blockdevices.sh @@ -630,7 +630,7 @@ _createpv() while [[ "${_DEV}" != "DONE" ]]; do _DEVNUMBER="$((_DEVNUMBER + 1))" # clean loop from used partition and options - _DEVS="${_DEVS//${_DEV}\ _/}" + _DEVS="$(echo "${_DEVS}" | sed -e "s#$(${_LSBLK} NAME,SIZE -d "${_DEV}")##g")" # add more devices #shellcheck disable=SC2086 _dialog --menu "Select additional device number ${_DEVNUMBER} for physical volume:" 15 60 12 ${_DEVS} DONE _ 2>"${_ANSWER}" || return 1