Bug 169588 - Use udev edd mappings during installs
Summary: Use udev edd mappings during installs
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: udev
Version: rawhide
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-09-29 23:00 UTC by John A. Hull
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-10-06 07:26:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description John A. Hull 2005-09-29 23:00:59 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

Description of problem:
I worked with the udev community to get a new utility added that provides an EDD ID --> block device mapping for udev. If the edd module is loaded, udev will check all of the block devices in the system, and provide the appropriate persistent device mapping for each device (similar to what anaconda does itself). I'd like Anaconda to use this method for finding udev devices instead of the current method. 

The udev tree for the edd_id program is here: http://www.kernel.org/git/?p=linux/hotplug/udev.git;a=tree;h=74e3949da4cc1f2151165925fb31c1bc68e75675;hb=9bd72b9b6b2645ea3c36ef0be9a070e8ff67904f;f=extras/edd_id

Working udev rules are here: http://linux.dell.com/files/edd/udev/60-edd.rules

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
None

Additional info:

Comment 1 Harald Hoyer 2005-10-06 06:49:19 UTC
KERNEL=="[sh]d*[!0-9]", ACTION=="add", IMPORT="/sbin/edd_id --export $tempnode",
SYMLINK+="disk/by-edd-id/$env{ID_EDD}"
KERNEL=="[sh]d*[0-9]", ACTION=="add", IMPORT{parent}=="ID_EDD",
SYMLINK+="disk/by-edd-id/$env{ID_EDD}-part%n"

Aren't two lines enough? Also note the "-part" to be consistent with the other
rules.

Comment 2 Harald Hoyer 2005-10-06 07:26:12 UTC
KERNEL=="[sh]d*[!0-9]", ACTION=="add", IMPORT="/sbin/edd_id --export $tempnode",
SYMLINK+="disk/by-edd-id/$env{ID_EDD}"
KERNEL=="[sh]d*[0-9]", ACTION=="add", IMPORT{parent}=="ID_EDD",
ENV{ID_EDD}=="?*", SYMLINK+="disk/by-edd-id/$env{ID_EDD}-part%n"

added the test ENV{ID_EDD}=="?*" for the empty $ID_EDD case.

Now you only have to convince the kernel component to statically include the edd
module (or rc.sysinit to load it before start_udev) and the mkinitrd and
anaconda component to include edd_id (edd_id.static included in udev). :-)


Note You need to log in before you can comment on or make changes to this bug.