Skip to content

Upstream db_persist udev rule from dracut

Setting db_persist is required for dm devices so that their properties are carried over on switch-root from the initrd to the rootfs. This logic has always lived in dracut (https://github.com/dracutdevs/dracut/blob/master/modules.d/90dm/11-dm.rules). However, this means that other initramfs generators each have to implement and maintain the same rule which leads to unnecessary duplication.

Instead, let's make the rule part of the upstream lvm rules, which will ensure that generated initramfses will just work if they make sure the lvm udev rules are installed, without having to figure out that they have to add an extra rule themselves on top.

Identical rule in Arch Linux's lvm2 package: https://gitlab.archlinux.org/archlinux/packaging/packages/lvm2/-/blob/main/11-dm-initramfs.rules?ref_type=heads

Merge request reports

Loading