/usr/share/genkernel/gen_compile.sh only copies default udev rules to the initrd directory. I have /etc/udev/rules.d/40-multipath.rules with the following in there: KERNEL="dm-[0-9]*", PROGRAM="/sbin/devmap_name %M %m", NAME="%k", SYMLINK="%c" This needs to be added to the udev rules directory. also devmap_name may need to be there as well for devices to be consistent.
please fix this for 3.2.0 if you can.
This would be nice to have fixed however the scripts require the use of sed. The logic in these scripts are not compatible with busybox's sed. In order to make this work we will need to modify the scripts to work around these issues. Also the binary that you mention needs to be scripted to be compiled properly. All of this takes time at the moment. We are aware of this issue and working on a fix but this may not hit genkernel- 3.2.0. We will do our best.
Yep, there's no nice easy way of getting this to work perfectly considering a) udev versions aren't going to be the same and b) sed issues. I'd simply rerun udev on bootup to run your custom rules. If you think there's a rule that the initrd should have by default you should probably speak to gregkh so he can add it to the default gentoo config shipped with udev.
I the multipath rule in initrd. I have my primary boot drive on SIL fakeraid. Currently I am using dmraid for bootup and multipath udev rule for regular running. i wind up having to have 2 different devices for my partitions, one in /dev/mapper/sil_blahblah (made by dmraid during boot - does not work after boot) and the other in /dev/sil_blahblah (make by udev - only after boot) here is the rule: KERNEL="dm-[0-9]*", PROGRAM="/sbin/devmap_name %M %m", NAME="%k", SYMLINK="%c" The problem occurs when I try to use genkernel to autoinstall my config to grub. It can't because the boot device i have in /etc/fstab does not exist in initrd. If you add the above udev rule to the default initrd then full bootup support for fakeraid will be in gentoo without hacking up the starup files. (perhaps u can use -udev-multipath config option?)
Honestly, this needs to be submitted to udev and not to us. This should go into the default udev configuration for Gentoo, as stated by Tim.