From 3f6ddb6fb643eb5322f19d2715b33ab577dc40b9 Mon Sep 17 00:00:00 2001 From: Fabian-Gruenbichler Date: Sun, 19 May 2024 10:39:34 +0200 Subject: [PATCH] support zvol devices (#2678) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit their partitions are exposed as "/dev/zdXXpY", handle accordingly. Signed-off-by: Fabian Grünbichler --- INSTALL/tool/ventoy_lib.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/INSTALL/tool/ventoy_lib.sh b/INSTALL/tool/ventoy_lib.sh index 710cc37f..6c402368 100644 --- a/INSTALL/tool/ventoy_lib.sh +++ b/INSTALL/tool/ventoy_lib.sh @@ -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