mirror of https://github.com/ventoy/Ventoy.git
support zvol devices (#2678)
their partitions are exposed as "/dev/zdXXpY", handle accordingly. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
b8838b305d
commit
3f6ddb6fb6
|
@ -92,6 +92,8 @@ get_disk_part_name() {
|
||||||
echo ${DISK}p${2}
|
echo ${DISK}p${2}
|
||||||
elif echo $DISK | grep -q "/dev/nbd[0-9]"; then
|
elif echo $DISK | grep -q "/dev/nbd[0-9]"; then
|
||||||
echo ${DISK}p${2}
|
echo ${DISK}p${2}
|
||||||
|
elif echo $DISK | grep -q "/dev/zd[0-9]"; then
|
||||||
|
echo ${DISK}p${2}
|
||||||
else
|
else
|
||||||
echo ${DISK}${2}
|
echo ${DISK}${2}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue