http://bugzilla.novell.com/show_bug.cgi?id=560186
http://bugzilla.novell.com/show_bug.cgi?id=560186#c2
Jeff Mahoney changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P5 - None |P3 - Medium
CC| |jeffm@novell.com
AssignedTo|kernel-maintainers@forge.pr |kasievers@novell.com
|ovo.novell.com |
--- Comment #2 from Jeff Mahoney 2009-12-11 21:50:54 UTC ---
This looks like it's a udev bug. The kernel issues the uevent for the floppy
device. Then udev calls /lib/udev/create_floppy_devices to set up the device
nodes outside of fd0.
The rule looks like this:
KERNEL=="fd[0-9]", GROUP="floppy"
KERNEL=="fd[0-9]", ACTION=="add", ATTRS{cmos}=="?*",
RUN+="create_floppy_devices -c -t $attr{cmos} -m %M -M 0640 -G floppy $root/%k
On my system, the cmos type is 4, so it should be called as:
create_floppy_devices -c -t 4 -m 2 -M 0640 -G floppy /dev/fd0
If I call this manually, the device nodes are properly created.
But for some reason, $attr{cmos} is getting passed as empty, so it's doing
this:
create_floppy_devices -c -t -m 2 -M 0640 -G floppy /dev/fd0
It exits with "Device '2' is not a floppy device" since -t is consuming -m as
its argument.
% udevadm info --attribute-walk --name=fd0
looking at device '/devices/platform/floppy.0/block/fd0':
KERNEL=="fd0"
SUBSYSTEM=="block"
DRIVER==""
ATTR{range}=="1"
ATTR{ext_range}=="1"
ATTR{removable}=="1"
ATTR{ro}=="0"
ATTR{size}=="8"
ATTR{alignment_offset}=="0"
ATTR{capability}=="11"
ATTR{stat}==" 0 0 0 0 0 0 0
0 0 0 0"
ATTR{inflight}==" 0 0"
looking at parent device '/devices/platform/floppy.0':
KERNELS=="floppy.0"
SUBSYSTEMS=="platform"
DRIVERS=="floppy"
ATTRS{modalias}=="platform:floppy"
ATTRS{cmos}=="4"
looking at parent device '/devices/platform':
KERNELS=="platform"
SUBSYSTEMS==""
DRIVERS==""
An update to udev 149 didn't fix it.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.