Skip to content

Commit

Permalink
support zvol devices (#2678)
Browse files Browse the repository at this point in the history
their partitions are exposed as "/dev/zdXXpY", handle accordingly.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
  • Loading branch information
Fabian-Gruenbichler committed May 19, 2024
1 parent b8838b3 commit 3f6ddb6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions INSTALL/tool/ventoy_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3f6ddb6

Please sign in to comment.