From 5eaf76cf233bf43dea5385f3dfcad7ec72cf05d9 Mon Sep 17 00:00:00 2001 From: Derrick Ornelas Date: Thu, 10 May 2018 17:19:43 -0400 Subject: [PATCH] Add support for multipath devices Previously, when a device-mapper multipath device was specified for DEVS setup would fail with "Partition specification unsupported at this time." Each device is checked to see if it has a parent, and, if so, it is assumed to be a partition. Multipath devices are not partitions, and their backing paths are reported as parent devices. This change adds the ability to correctly identify multipath devices by checking for device type of "mpath" so that they are not mistaken for partitions. Closes: #270 Approved by: rhvgoyal --- container-storage-setup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/container-storage-setup.sh b/container-storage-setup.sh index 39de07b..b7c1a54 100755 --- a/container-storage-setup.sh +++ b/container-storage-setup.sh @@ -778,6 +778,10 @@ is_block_dev_partition() { return 0 fi + if [ "$disktype" == "mpath" ];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)