add support for nbd device (PR #746)

This commit is contained in:
longpanda
2021-02-18 09:43:27 +08:00
parent 3541735796
commit 82977d9b8a
8 changed files with 10 additions and 8 deletions

View File

@@ -36,7 +36,7 @@ if [ "$vtdiskname" = "unknown" ]; then
exit 0
fi
if echo $vtdiskname | egrep -q "nvme.*p[0-9]$|mmc.*p[0-9]$"; then
if echo $vtdiskname | egrep -q "nvme.*p[0-9]$|mmc.*p[0-9]$|nbd.*p[0-9]$"; then
vPart="${vtdiskname}p2"
else
vPart="${vtdiskname}2"