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

@ -90,6 +90,8 @@ get_disk_part_name() {
echo ${DISK}p${2}
elif echo $DISK | grep -q "/dev/mmcblk[0-9]"; then
echo ${DISK}p${2}
elif echo $DISK | grep -q "/dev/nbd[0-9]"; then
echo ${DISK}p${2}
else
echo ${DISK}${2}
fi