Read-only devices appear as DM_STATE=READONLY, so we should invert the check in kpartx rules to have kpartx run on readonly devices, too. Signed-off-by: Hannes Reinecke <hare@xxxxxxx> --- kpartx/kpartx.rules | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kpartx/kpartx.rules b/kpartx/kpartx.rules index 64863a0..febac90 100644 --- a/kpartx/kpartx.rules +++ b/kpartx/kpartx.rules @@ -22,7 +22,7 @@ ENV{DM_PART}=="?*", \ SYMLINK+="disk/by-id/$env{DM_TYPE}-$env{DM_NAME}-part$env{DM_PART}" # Create dm tables for partitions -ENV{DM_STATE}=="ACTIVE", ENV{DM_UUID}=="mpath-*", \ +ENV{DM_STATE}!="SUSPENDED", ENV{DM_UUID}=="mpath-*", \ RUN+="/sbin/kpartx -u -p -part /dev/$name" LABEL="kpartx_end" -- 1.7.4.2 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel