From 3c682593bc907c89a16fc2045028cedc50dacfe0 Mon Sep 17 00:00:00 2001 From: BrainwreckedTech <3752022+BrainwreckedTech@users.noreply.github.com> Date: Mon, 20 Dec 2021 00:47:27 -0500 Subject: [PATCH] Account for ZFS --- partvis | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/partvis b/partvis index 0400d5a..d38345d 100755 --- a/partvis +++ b/partvis @@ -108,7 +108,7 @@ for DEVICE in $(fdisk -l | grep '^Disk /' | grep -v '/dev/ram' | cut -d\ -f2 | printf "%s" "│" for (( LCV = 0; LCV < ${#PARTITIONS[@]}; LCV++ )); do - OUTPUT=$(blkid -o export "${PARTITIONS[${LCV}]}" | grep '^\(TYPE=\)' | cut -d= -f2 | sed 's:linux_raid_member:raid:g') + OUTPUT=$(blkid -o export "${PARTITIONS[${LCV}]}" | grep '^\(TYPE=\)' | cut -d= -f2 | sed 's:linux_raid_member:raid:g;s:zfs_member:zfs:g') PADL=$(( ( ${PCOLS[${LCV}]} - ${#OUTPUT} ) / 2 )) PADR=$(( ${PCOLS[${LCV}]} - ${#OUTPUT} - ${PADL} )) printf '%*s%s%*s' ${PADL} "" "${OUTPUT}" ${PADR} ""