LVM/DM rules in dracut
authorPeter Rajnoha <prajnoha@redhat.com>
Wed, 2 Sep 2009 11:35:17 +0000 (13:35 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 2 Sep 2009 13:55:34 +0000 (15:55 +0200)
commitd6462323d6df4a50d1e774827a7e21a1565bf844
tree41ebc9cdc3b51ae3863938204d0c68dd9b23be81
parent1d368457e3c40f45052370b9d798998cc36d8c3e
LVM/DM rules in dracut

I've looked at the LVM rules used in dracut just recently
and it needs fixing - we should react to change events only
for DM devices, so we have to skip vol_id/blkid call on ADD:

KERNEL=="dm-[0-9]*", ACTION=="add", GOTO="lvm_end"

Also, MD devices have their own rules, where vol_id/blkid
is called and where the symlinks are created (when looking
into raw initrd, this is in  64-md-raid.rules).

Also, if those rules are meant to be for DM devices only,
maybe we should skip symlink creation for the other devices
there, to keep the rules clean and straightforward. I think
we shouldn't create/recreate symlinks for non-dm devices in
LVM/DM rules (..should be in appropriate rules for that type
of device):

KERNEL!="dm-[0-9]*", GOTO="lvm_end"
modules.d/90lvm/64-lvm-vol_id.rules
modules.d/90lvm/64-lvm.rules