]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
support zvol devices (#2678)
authorFabian-Gruenbichler <f.gruenbichler@proxmox.com>
Sun, 19 May 2024 08:39:34 +0000 (10:39 +0200)
committerGitHub <noreply@github.com>
Sun, 19 May 2024 08:39:34 +0000 (16:39 +0800)
their partitions are exposed as "/dev/zdXXpY", handle accordingly.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
INSTALL/tool/ventoy_lib.sh

index 710cc37f89fe71b1b455216bf3b65243718f3bde..6c402368d878f0c75695d8a049f1a20022926150 100644 (file)
@@ -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}
         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
     else
         echo ${DISK}${2}
     fi