fix pv create

This commit is contained in:
Tobias Powalowski 2022-01-27 08:04:54 +01:00
parent 2c3f13e719
commit f6106e74fe

View file

@ -1013,8 +1013,7 @@ _createvg()
while [[ "${PVS}" != "DONE" ]]; do while [[ "${PVS}" != "DONE" ]]; do
PVNUMBER=$((PVNUMBER + 1)) PVNUMBER=$((PVNUMBER + 1))
# clean loop from used partition and options # clean loop from used partition and options
PVS="$(echo "${PVS}" | sed -e "s#${PV}\ _##g")" PVS="$(echo ${PVS} | sed -e "s#${PV} _##g")"
#PVS="${PVS//${PV}\ _/}"
# add more devices # add more devices
#shellcheck disable=SC2086 #shellcheck disable=SC2086
DIALOG --menu "Select additional Physical Volume ${PVNUMBER} for ${VGDEVICE}" 21 50 13 ${PVS} DONE _ 2>${ANSWER} || return 1 DIALOG --menu "Select additional Physical Volume ${PVNUMBER} for ${VGDEVICE}" 21 50 13 ${PVS} DONE _ 2>${ANSWER} || return 1