Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93756 - genkernel --udev does not copy existing udev rules
Summary: genkernel --udev does not copy existing udev rules
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-23 21:25 UTC by Eugene Gluzberg
Modified: 2005-07-05 11:12 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Gluzberg 2005-05-23 21:25:34 UTC
/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.
Comment 1 Eugene Gluzberg 2005-06-22 20:07:11 UTC
please fix this for 3.2.0 if you can.
Comment 2 Eric Edgar (RETIRED) gentoo-dev 2005-06-22 20:37:52 UTC
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.
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2005-07-03 13:55:16 UTC
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.
Comment 4 Eugene Gluzberg 2005-07-03 17:59:39 UTC
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?) 
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2005-07-05 11:12:41 UTC
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.