Re: [RFC PATCH 2/7] 10-dm.rules: don't deactivate devices for DISK_RO=1

Martin Wilck <[email protected]> Mon, 04 Mar 2024 16:21:27 +0100
Newsgroups dev.linux.lists.linux-lvm,dev.linux.lists.dm-devel
Message-ID <[email protected]>
On Mon, 2024-03-04 at 12:27 +0100, Peter Rajnoha wrote:
> On 3/4/24 12:19, Peter Rajnoha wrote:
> > 
> > Now, I'm asking myself why we have the 'ACTION="add"' in the
> > systemd
> > rule at all. Why is it not just checking 
> > DM_UDEV_DISABLE_OTHER_RULES_FLAG?
> > 
> 
> Oh! :)
> 
> https://github.com/systemd/systemd/commit/35a6750d9e26b26b423fbe815bead7d750210d8d
> 

This systemd rule is wrong, and I will to post a PR for it, but as
I said in the cover letter, I want to address these issues one by one.

If DM_UDEV_DISABLE_OTHER_RULES_FLAG=1, systemd should import
SYSTEMD_READY from the db rather than set it to 0.

Martin