# drop any trailing digits, so we get e.g. /dev/sda for /dev/sda1
NGCP_DISK="${NGCP_DISK%%[0-9]*}"
# if the user tries to (re)install to the disk that provides an "ngcp"
# PV already we should allow overwriting data
if[["${NGCP_DISK}"=="${TARGET_DISK}"]];then
return0
fi
dialog --title "LVM PVS check"\
--msgbox "Sorry, there seems to be a physical volume named 'ngcp' on disk $(echo$EXISTING_VGS| awk '/^ngcp/ {print $2}') present already. Installation can't continue, please remove/detach the disk and rerun installation procedure."00
--msgbox "Sorry, there seems to be a physical volume named 'ngcp' on disk $NGCP_DISK present already. Installation can't continue, please remove/detach the disk and rerun installation procedure."00