Skip to contentSkip to conversation

udev 152 release

ANNOUNCE Kay Sievers 3 participants 6 messages Apr 20, 2010 – Oct 3, 2010

lore
Share & tools
lore
#0 lore raw

Here comes a new udev version. Thanks to all who have contributed to this release.

The tarball can be found here:
ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/

The development repository can be found here:
http://www.kernel.org/git/?p=linux/hotplug/udev.git;a=summary

The ChangeLog can be found here:
http://www.kernel.org/git/?p=linux/hotplug/udev.git;a=blob;hb=HEAD;f=ChangeLog

udev 152
====
Bugfixes.

"udevadm trigger" defaults to "change" events now instead of "add" events. The "udev boot script" might need to add "--action­d" to the trigger command if not already there, in case the initial coldplug events are expected as "add" events.

The option "all_partitions" was removed from udev. This should not be needed for usual hardware. Udev can not safely make assumptions about non-existing partition major/minor numbers, and therefore no longer provide this unreliable and unsafe option.

The option "ignore_remove" was removed from udev. With devtmpfs udev passed control over device nodes to the kernel. This option should not be needed, or can not work as advertised. Neither udev nor the kernel will remove device nodes which are copied from the /lib/udev/devices/ directory.

All "add|change" matches are replaced by "!remove" in the rules and in the udev logic. All types of events will update possible symlinks and permissions, only "remove" is handled special now.

The modem modeswitch extra was removed and the external usb_modeswitch program should be used instead.

New and fixed keymaps.

#1 lore raw
Quoted 4 lines · On Tue, 20 Apr 2010 09:55:16 +0200 Kay Sievers <[email protected]> wrote:

The tarball can be found here:
ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/
...
udev 152

I rambled around the IRC channel a bit before I figured out what the heck was wrong, and I'm only posting here because I suspect someone else might run across this and be equally baffled trying to find what is later an obvious thing :-)

Somehow the configure and configure.ac inside the udev-152 source tarball has this:

./configure: with_firmware_path="/lib/fimware/updates:/lib/fimware"
./configure.ac: [with_firmware_path="/lib/fimware/updates:/lib/fimware"]

I don't see that string in the git repo, so I guess there was a typo when running autogen.sh on your end of things.

-RW

#2 lore raw
In reply to Kay Sievers
Quoted 17 lines · On Tue, 20 Apr 2010 22:46:19 -0500 Robby Workman <[email protected]> wrote:
Quoted 4 lines · On Tue, 20 Apr 2010 09:55:16 +0200 Kay Sievers <[email protected]> wrote:

The tarball can be found here:
ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/
...
udev 152

I rambled around the IRC channel a bit before I figured out what the heck was wrong, and I'm only posting here because I suspect someone else might run across this and be equally baffled trying to find what is later an obvious thing :-)

Somehow the configure and configure.ac inside the udev-152 source tarball has this:

Quoted 6 lines

./configure: with_firmware_path="/lib/fimware/updates:/lib/fimware" ./configure.ac:
[with_firmware_path="/lib/fimware/updates:/lib/fimware"]

I don't see that string in the git repo, so I guess there was a typo when running autogen.sh on your end of things.

Ooh, I take that back. I'm blind.

configure.ac in git has the bad string. I suspect it's easier to just fix yourself as opposed to applying a patch, but just in case:
http://git.rlworkman.net/gitweb.cgi?p=udev.git;a=commitdiff;h=24e229e4c0bbbb0c882f70cab40be9d03c67be91

-RW

#3 lore raw
In reply to Kay Sievers

Kay Sievers <kay.sievers <at> vrfy.org> writes:
[...]

Quoted 1 line

Here comes a new udev version.

[...]

Quoted 1 line

udev 152

[...]

Quoted 4 lines

The option "all_partitions" was removed from udev. This should not be needed for usual hardware. Udev can not safely make assumptions about non-existing partition major/minor numbers, and therefore no longer provide this unreliable and unsafe option.

[...]

Hello,

is there a officially suggested replacement for "all_partitions"? USB-cardreaders are not "unusual", but nevertheless usually do not report media-changes (See
http://www.reactivated.net/writing_udev_rules.html#example-usbcardreader).

thanks, cu andreas

#4 lore raw
In reply to Kay Sievers
Quoted 10 lines · Andreas Metzler

Kay Sievers <kay.sievers <at> vrfy.org> writes:
[...]

Quoted 1 line

Here comes a new udev version.

[...]

Quoted 1 line

udev 152

[...]

Quoted 4 lines

The option "all_partitions" was removed from udev. This should not be needed for usual hardware. Udev can not safely make assumptions about non-existing partition major/minor numbers, and therefore no longer provide this unreliable and unsafe option.

Quoted 7 lines

[...]

is there a officially suggested replacement for "all_partitions"? USB-cardreaders are not "unusual", but nevertheless usually do not report media-changes (See
http://www.reactivated.net/writing_udev_rules.html#example-usbcardreader).

No, not in udev. The main device node needs to be polled periodically. This is usually done by udisks, a simple 'touch' will also do. Currently it's being worked on to add polling to the kernel itself.

Kay

#5 lore raw
In reply to Kay Sievers
Quoted 14 lines · Kay Sievers
Quoted 11 lines · Andreas Metzler

Kay Sievers <kay.sievers <at> vrfy.org> writes:
[...]

Quoted 1 line

Here comes a new udev version.

[...]

Quoted 1 line

udev 152

[...]

Quoted 4 lines

The option "all_partitions" was removed from udev. This should not be needed for usual hardware. Udev can not safely make assumptions about non-existing partition major/minor numbers, and therefore no longer provide this unreliable and unsafe option.

[...]

Quoted 8 lines
Quoted 4 lines

is there a officially suggested replacement for "all_partitions"? USB-cardreaders are not "unusual", but nevertheless usually do not report media-changes (See
http://www.reactivated.net/writing_udev_rules.html#example-usbcardreader).

No, not in udev. The main device node needs to be polled periodically. This is usually done by udisks, a simple 'touch' will also do. Currently it's being worked on to add polling to the kernel itself.

Isn't polling evil(TM)?

I would be (and was) perfectlywithe leightweight solution of of automatically get /dev/sdX[1-8] and symlinks /dev/cardreader/sd[1-8] instead of just /dev/sdX and the symlink /dev/cardreader/sd when udev detects the presence of the cardreader device. Whether the number of device nodes exactly matches the number of partitions on the inserted sd-card is not really of importance for me.

cu andreas