From 374ff1328c34002f851261fb45b0034ec49104ed Mon Sep 17 00:00:00 2001 From: Andreas WILM Date: Fri, 9 Feb 2018 22:33:41 +0800 Subject: [PATCH] Changed is_block_dev_partition() to allow raid devices --- container-storage-setup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/container-storage-setup.sh b/container-storage-setup.sh index 2f3e140..bc64615 100755 --- a/container-storage-setup.sh +++ b/container-storage-setup.sh @@ -730,6 +730,10 @@ is_block_dev_partition() { return 0 fi + if [[ "$disktype" = "raid"* ]];then + return 1 + fi + # For loop device partitions, lsblk reports type as "loop" and not "part". # So check if device has a parent in the tree and if it does, there are high # chances it is partition (except the case of lvm volumes)