]> git.ipfire.org Git - thirdparty/mdadm.git/commit
udev: persist properties of MD devices after switch_root
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Thu, 23 Jan 2025 18:46:38 +0000 (19:46 +0100)
committerMariusz Tkaczyk <mtkaczyk@kernel.org>
Mon, 27 Jan 2025 09:15:32 +0000 (10:15 +0100)
commit21e4efb1cd15c4de4a57de26b0ea2e4234aa8ce5
tree470d66e846c16d612c2a45f32baf55dd1b9ff7dd
parentb1ee932b89a16c881a3336f9fd728d46c1f8c65d
udev: persist properties of MD devices after switch_root

dracut installs in the initrd a custom udev rule for MD devices
(59-persistent-storage-md.rules) only to set the db_persist option (see
[1]). The main purpose is that if an MD device is activated in the initrd,
its properties are kept on the udev database after the transition from the
initrd to the rootfs. This was added to fix detection issues when LVM is
on top.

This patch would allow to remove the custom udev rule shipped by dracut
(63-md-raid-arrays.rules is already being installed in the initrd), and it
will also benefit other initrd generators that do not want to create
custom udev rules.

[1] https://github.com/dracutdevs/dracut/blob/master/modules.d/90mdraid

Signed-off-by: Antonio Alvarez Feijoo <antonio.feijoo@suse.com>
udev-md-raid-arrays.rules