fix pv cleaning

This commit is contained in:
Tobias Powalowski 2023-07-15 10:09:09 +02:00
parent 511877b969
commit ce9605ad7c

View file

@ -647,7 +647,7 @@ _createvg()
_PVNUMBER=$((_PVNUMBER + 1))
# clean loop from used partition and options
#shellcheck disable=SC2001,SC2086
_PVS="${_PVS//$(${_LSBLK} NAME,SIZE -d "${_PV}") 2>"${_NO_LOG}"/}"
_PVS="${_PVS/$(${_LSBLK} NAME,SIZE -d "${_PV}") 2>"${_NO_LOG}"//}"
# add more devices
#shellcheck disable=SC2086
_dialog --no-cancel --menu "Select additional Physical Volume ${_PVNUMBER} for ${_VGDEV}:" 13 50 10 ${_PVS} DONE _ 2>"${_ANSWER}" || return 1