Bug 117196 - udev rule is not written correctly
Summary: udev rule is not written correctly
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Hotplug (show other bugs)
Version: RC 4
Hardware: Other All
: P5 - None : Normal
Target Milestone: ---
Assignee: Kay Sievers
QA Contact: Klaus Kämpf
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-15 11:40 UTC by Matthias Fruehauf
Modified: 2006-09-28 13:26 UTC (History)
2 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
y2log (177.62 KB, text/plain)
2005-09-15 14:59 UTC, Matthias Fruehauf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Fruehauf 2005-09-15 11:40:39 UTC
After a fresh installation of RC4 on a PowerBook, the udev rules for cdrom 
looks like the following: 
 
# cdrom links generated by YaST2 
#  
SUBSYSTEM=="block", ENV{ID_PATH}=="-ide-0:0", SYSFS{removable}=="1", 
SYMLINK+="cdrecorder cdrom dvd" 
 
 
According to zoz it should look like this one: 
 
# cdrom links generated by YaST2 
#  
SUBSYSTEM=="block", ENV{ID_PATH}=="*-ide-0:0", SYSFS{removable}=="1", 
SYMLINK+="cdrecorder cdrom dvd" 
 
 
Difference is the star in the ID path. 
 
Any other info you need?
Comment 1 Klaus Kämpf 2005-09-15 11:48:15 UTC
Hmm, did we get this wrong in 10.0 or does PPC need a different rule ? 
Comment 3 Olaf Hering 2005-09-15 12:14:09 UTC
IDE is connected to the macio bus, maybe thats the reason why it failed. worked
ok on pegasos with VIA ide controller.
Comment 4 Thomas Fehr 2005-09-15 12:22:27 UTC
I get the content for ENV{ID_PATH} from hwinfo, so please attach y2log files and 
we should be able to see where the missing "*" vanished.
Comment 6 Matthias Fruehauf 2005-09-15 14:59:30 UTC
Created attachment 50028 [details]
y2log
Comment 7 Matthias Fruehauf 2005-09-15 15:00:38 UTC
y2log provided  
Comment 8 Thomas Fehr 2005-09-15 15:17:10 UTC
Hwinfo does indeed deliver the strange name in the installation environment
the dev_names are:
"dev_names":["/dev/hdc", "/dev/disk/by-path/-ide-0:0"].

Later in the installed system dev_names are probably more correct:
"dev_names":["/dev/hdc", "/dev/disk/by-path/mac-io_ata-3-ide-0:0"]
Comment 9 Steffen Winterfeldt 2005-09-15 15:20:35 UTC
The names come from udev. 
Comment 10 Kay Sievers 2005-09-15 15:27:07 UTC
Hmm, /sbin/path_id seems not to work correctly during installation.
I have absolutely no idea how to debug this without physical access to such a box. 
Comment 11 Olaf Hering 2005-09-15 15:35:01 UTC
cowberry.suse.de is in the inst-sys, pwd is 'root'.
Comment 12 Steffen Winterfeldt 2005-09-15 15:36:09 UTC
Maybe it uses some tools that's missing? 
Comment 13 Kay Sievers 2005-09-15 16:02:16 UTC
Nice service Olaf, thanks!
Correct it misses tools. path_id for whatever reason contains this:
  PATH=/lib/klibc/bin #/usr:/usr/sbin:/usr/bin:/sbin:/bin

and sed fails.
Comment 14 Olaf Hering 2005-09-15 16:08:18 UTC
bug in installation-images, klibc-utils not fully provided.
Comment 15 Steffen Winterfeldt 2005-09-15 16:17:09 UTC
??? 
What do you need them for? There are the real ones. 
Comment 16 Olaf Hering 2005-09-15 17:03:27 UTC
as you can see above, the "real" ones are not used.
Comment 17 Steffen Winterfeldt 2005-09-16 09:37:30 UTC
Well, they should, then. What's the point if that strange PATH setting? 
Comment 18 Olaf Hering 2005-09-16 15:54:09 UTC
to not use the fat one by accident. at one point I had hope to get rid of glibc,
but today we add even more shit to initrd...
Comment 19 Kay Sievers 2005-10-21 02:41:52 UTC
klibc specific path removed