On Fri, Feb 09, 2024 at 05:55:09PM +0100, Martin Wilck wrote: > DM_UDEV_DISABLE_OTHER_RULES_FLAG is handled by 10-dm.rules, which imports > it from db if necessary. There is no need to do this again here. > > DM_NOSCAN may be already set from previous rules, e.g. if the device is > suspended. Make sure we don't overwrite it. > > Signed-off-by: Martin Wilck <mwilck@xxxxxxxx> Reviewed-by: Benjamin Marzinski <bmarzins@xxxxxxxxxx> > --- > multipath/11-dm-mpath.rules.in | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/multipath/11-dm-mpath.rules.in b/multipath/11-dm-mpath.rules.in > index e7be12d..05c4294 100644 > --- a/multipath/11-dm-mpath.rules.in > +++ b/multipath/11-dm-mpath.rules.in > @@ -7,7 +7,13 @@ IMPORT{db}="MPATH_DEVICE_READY" > > # If this uevent didn't come from dm, don't try to update the > # device state > -ENV{DM_COOKIE}!="?*", ENV{DM_ACTION}!="PATH_*", IMPORT{db}="DM_UDEV_DISABLE_OTHER_RULES_FLAG", IMPORT{db}="DM_NOSCAN", GOTO="scan_import" > +ENV{DM_COOKIE}=="?*", GOTO="check_ready" > +ENV{DM_ACTION}=="PATH_*", GOTO="check_ready" > + > +ENV{DM_NOSCAN}!="?*", IMPORT{db}="DM_NOSCAN" > +GOTO="scan_import" > + > +LABEL="check_ready" > > ENV{.MPATH_DEVICE_READY_OLD}="$env{MPATH_DEVICE_READY}" > > -- > 2.43.0