mirror of
https://github.com/ventoy/Ventoy
synced 2024-09-30 05:05:33 +00:00
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}
|
||||
elif echo $DISK | grep -q "/dev/nbd[0-9]"; then
|
||||
echo ${DISK}p${2}
|
||||
elif echo $DISK | grep -q "/dev/zd[0-9]"; then
|
||||
echo ${DISK}p${2}
|
||||
else
|
||||
echo ${DISK}${2}
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue