NEWS revision e7638c038b7e71619396cd69d61a64f29f64e638
10fa421cd2abdc2ae1a07f7c13bfaa4ee6d6de4fDavid HerrmannPersistent network naming rules are disabled inside of Qemu/KVM now.
10fa421cd2abdc2ae1a07f7c13bfaa4ee6d6de4fDavid HerrmannNew and updated keymaps.
10fa421cd2abdc2ae1a07f7c13bfaa4ee6d6de4fDavid HerrmannUdev gets unconditionally enabled on systemd installations now. There
10fa421cd2abdc2ae1a07f7c13bfaa4ee6d6de4fDavid Herrmannis no longer the need to to run 'systemctl enable udev.service'.
e57eaef8a187762ca92838c24b9b6460878a800cDavid HerrmannNew and fixed keymaps.
e57eaef8a187762ca92838c24b9b6460878a800cDavid HerrmannInstall systemd service files if applicable.
931618d08c64083ff7b29c494f482c40a5b05608Daniel MackAll distribution specific rules are removed from the udev source tree,
931618d08c64083ff7b29c494f482c40a5b05608Daniel Mackmost of them are no longer needed. The Gentoo rules which allow to support
37d54b938faeefd0a5a74f9197a33d78bbb8d6bfDaniel Mackolder kernel versions, which are not covered by the default rules anymore
931618d08c64083ff7b29c494f482c40a5b05608Daniel MackThe option --debug-trace and the environemnt variable UDEVD_MAX_CHILDS=
931618d08c64083ff7b29c494f482c40a5b05608Daniel Mackwas removed from udevd.
931618d08c64083ff7b29c494f482c40a5b05608Daniel MackUdevd now checks the kernel commandline for the following variables:
931618d08c64083ff7b29c494f482c40a5b05608Daniel Mack udev.log-priority=<syslog priority>
931618d08c64083ff7b29c494f482c40a5b05608Daniel Mack udev.children-max=<maximum number of workers>
931618d08c64083ff7b29c494f482c40a5b05608Daniel Mack udev.exec-delay=<seconds to delay the execution of RUN=>
931618d08c64083ff7b29c494f482c40a5b05608Daniel Mackto help debuging coldplug setups where the loading of a kernel
931618d08c64083ff7b29c494f482c40a5b05608Daniel Mackmodule crashes the system.
931618d08c64083ff7b29c494f482c40a5b05608Daniel MackThe subdirectory in the source tree rules/packages has been renamed to
931618d08c64083ff7b29c494f482c40a5b05608Daniel Mackrules/arch, anc contains only architecture specific rules now.
e57eaef8a187762ca92838c24b9b6460878a800cDavid HerrmannNow the udev daemon itself, does on startup:
e57eaef8a187762ca92838c24b9b6460878a800cDavid Herrmann - copy the content of /lib/udev/devices to /dev
e57eaef8a187762ca92838c24b9b6460878a800cDavid Herrmann - create the standard symlinks like /dev/std{in,out,err},
e57eaef8a187762ca92838c24b9b6460878a800cDavid Herrmann - use static node information provided by kernel modules
e57eaef8a187762ca92838c24b9b6460878a800cDavid Herrmann and creates these nodes to allow module on-demand loading
e57eaef8a187762ca92838c24b9b6460878a800cDavid Herrmann - possibly apply permissions to all ststic nodes from udev
e57eaef8a187762ca92838c24b9b6460878a800cDavid Herrmann rules which are annotated to match a static node
e4e66993951e9e349e8008fa7c81184b6e4ae385David HerrmannThe default mode for a device node is 0600 now to match the kernel
e4e66993951e9e349e8008fa7c81184b6e4ae385David Herrmanncreated devtmpfs defaults. If GROUP= is specified and no MODE= is
e4e66993951e9e349e8008fa7c81184b6e4ae385David Herrmanngiven the default will be 0660.
e4e66993951e9e349e8008fa7c81184b6e4ae385David HerrmannUdev now gradually starts to pass control over the primary device nodes
e4e66993951e9e349e8008fa7c81184b6e4ae385David Herrmannand their names to the kernel, and will in the end only manage the
e4e66993951e9e349e8008fa7c81184b6e4ae385David Herrmannpermissions of the node, and possibly create additional symlinks.
e57eaef8a187762ca92838c24b9b6460878a800cDavid HerrmannAs a first step NAME="" will be ignored, and NAME= setings with names
0db83ad7334809a6605501e24bad55f3b652c072David Herrmannother than the kernel provided name will result in a logged warning.
5541c88977e63215e74b7517fb33cb27e5a04f17David HerrmannKernels that don't provide device names, or devtmpfs is not used, will
861b02ebd6ec997a6880824960ba8903bac74f7dKay Sieversstill work as they did before, but it is strongly recommended to use
861b02ebd6ec997a6880824960ba8903bac74f7dKay Sieversonly the same names for the primary device node as the recent kernel
861b02ebd6ec997a6880824960ba8903bac74f7dKay Sieversprovides for all devices.
0db83ad7334809a6605501e24bad55f3b652c072David HerrmannFix broken firmware loader search path.
0db83ad7334809a6605501e24bad55f3b652c072David Herrmann"udevadm trigger" defaults to "change" events now instead of "add"
5541c88977e63215e74b7517fb33cb27e5a04f17David Herrmannevents. The "udev boot script" might need to add "--action=add" to
5541c88977e63215e74b7517fb33cb27e5a04f17David Herrmannthe trigger command if not already there, in case the initial coldplug
5541c88977e63215e74b7517fb33cb27e5a04f17David Herrmannevents are expected as "add" events.
9b361114f568e839784a3aeba5c1df5a95e86832Daniel MackThe option "all_partitons" was removed from udev. This should not be
9b361114f568e839784a3aeba5c1df5a95e86832Daniel Mackneeded for usual hardware. Udev can not safely make assumptions
9b361114f568e839784a3aeba5c1df5a95e86832Daniel Mackabout non-existing partition major/minor numbers, and therefore no
9b361114f568e839784a3aeba5c1df5a95e86832Daniel Macklonger provide this unreliable and unsafe option.
9b361114f568e839784a3aeba5c1df5a95e86832Daniel MackThe option "ignore_remove" was removed from udev. With devtmpfs
9b361114f568e839784a3aeba5c1df5a95e86832Daniel Mackudev passed control over device nodes to the kernel. This option
9b361114f568e839784a3aeba5c1df5a95e86832Daniel Mackshould not be needed, or can not work as advertised. Neither
0db83ad7334809a6605501e24bad55f3b652c072David Herrmannudev nor the kernel will remove device nodes which are copied from
0db83ad7334809a6605501e24bad55f3b652c072David HerrmannAll "add|change" matches are replaced by "!remove" in the rules and
5541c88977e63215e74b7517fb33cb27e5a04f17David Herrmannin the udev logic. All types of events will update possible symlinks
5541c88977e63215e74b7517fb33cb27e5a04f17David Herrmannand permissions, only "remove" is handled special now.
0db83ad7334809a6605501e24bad55f3b652c072David HerrmannThe modem modeswitch extra was removed and the external usb_modeswitch
2d1ca11270e66777c90a449096203afebc37ec9cDavid Herrmannprogram should be used instead.
0db83ad7334809a6605501e24bad55f3b652c072David HerrmannNew and fixed keymaps.
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart PoetteringKernels with SYSFS_DEPRECATED=y are not supported since a while. Many users
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart Poetteringdepend on the current sysfs layout and the information not available in the
0aee49d5fba2b2ec94e5c069d937004858a04b4fThomas Hindoe Paaboel Andersendeprecated layout. All remaining support for the deprecated sysfs layout is
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart PoetteringFix for a possible endless loop in the new input_id program.
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart PoetteringThe option "ignore_device" does no longer exist. There is no way to
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart Poetteringignore an event, as libudev events can not be suppressed by rules.
0aee49d5fba2b2ec94e5c069d937004858a04b4fThomas Hindoe Paaboel AndersenIt only prevented RUN keys from being executed, which results in an
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart Poetteringinconsistent behavior in current setups.
0f0467e63b0e0688ae9edb1512c1a2637d62ddb4Martin PittBUS=, SYSFS{}=, ID= are long deprecated and should be SUBSYSTEM(S)=,
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart PoetteringATTR(S){}=, KERNEL(S)=. It will cause a warning once for every rule
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart Poetteringfile from now on.
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart PoetteringThe support for the deprecated IDE devices has been removed from the
0aee49d5fba2b2ec94e5c069d937004858a04b4fThomas Hindoe Paaboel Andersendefault set of rules. Distros who still care about non-libata drivers
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart Poetteringneed to add the rules to the compat rules file.
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart PoetteringThe ID_CLASS property on input devices has been replaced by the more accurate
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart Poetteringset of flags ID_INPUT_{KEYBOARD,KEY,MOUSE,TOUCHPAD,TABLET,JOYSTICK}. These are
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart Poetteringdetermined by the new "input_id" prober now. Some devices, such as touchpads,
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart Poetteringcan have several classes. So if you previously had custom udev rules which e. g.
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart Poetteringchecked for ENV{ID_CLASS}=="kbd", you need to replace this with
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart PoetteringENV{ID_INPUT_KEYBOARD}=="?*".
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart PoetteringTo support DEVPATH strings larger than the maximum file name length, the
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart Poetteringprivate udev database format has changed. If some software still reads the
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart Poetteringprivate files in /dev/.udev/, which it shouldn't, now it's time to fix it.
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart PoetteringPlease do not port anything to the new format again, everything in /dev/.udev
0aee49d5fba2b2ec94e5c069d937004858a04b4fThomas Hindoe Paaboel Andersenis and always was private to udev, and may and will change any time without
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart PoetteringMultiple devices claiming the same names in /dev are limited to symlinks
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart Poetteringonly now. Mixing identical symlink names and node names is not supported.
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart PoetteringThis reduces the amount of data in the database significantly.
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart PoetteringNAME="%k" causes a warning now. It's is and always was completely superfluous.
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart PoetteringIt will break kernel supplied DEVNAMEs and therefore it needs to be removed
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart Poetteringfrom all rules.
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart PoetteringMost NAME= instructions got removed. Kernel 2.6.31 supplies the needed names
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart Poetteringif they are not the default. To support older kernels, the NAME= rules need to
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart Poetteringbe added to the compat rules file.
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart PoetteringSymlinks to udevadm with the old command names are no longer resolved to
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart Poetteringthe udevadm commands.
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart PoetteringThe udev-acl tool got adopted to changes in ConsoleKit. Version 0.4.1 is
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart PoetteringThe option "last_rule" does no longer exist. Its use breaks too many
b912e251812bb65bed1d545d9748f5b0918f1559Lennart Poetteringthings which expect to be run from independent later rules, and is an idication
b912e251812bb65bed1d545d9748f5b0918f1559Lennart Poetteringthat something needs to be fixed properly instead.
b912e251812bb65bed1d545d9748f5b0918f1559Lennart PoetteringThe gudev API is no longer marked as experimental,
b912e251812bb65bed1d545d9748f5b0918f1559Lennart PoetteringG_UDEV_API_IS_SUBJECT_TO_CHANGE is no longer needed. The gudev introspection
470e72d4081c7d0fd74666b7a45358d5ee2abee1Lennart Poetteringis enabled by default now. Various projects already depend on introspection
b912e251812bb65bed1d545d9748f5b0918f1559Lennart Poetteringinformation to bind dynamic languages to the gudev interfaces.
f7a73a2558bceffd983eb7642680e718cd981122David HerrmannThe udevadm trigger "--retry-failed" option, which is replaced since quite
f7a73a2558bceffd983eb7642680e718cd981122David Herrmanna while by "--type=failed" is removed.
f7a73a2558bceffd983eb7642680e718cd981122David HerrmannThe failed tracking was not working at all for a few releases. The RUN
f7a73a2558bceffd983eb7642680e718cd981122David Herrmannoption "ignore_error" is replaced by a "fail_event_on_error" option, and the
f7a73a2558bceffd983eb7642680e718cd981122David Herrmanndefault is not to track any failing RUN executions.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringNew keymaps, new modem, hid2hci updated.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringFix possible crash in udevd when worker processes are busy, rules are
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringchanged at the same time, and workers get killed to reload the rules.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringProperties set with ENV{.FOO}="bar" are marked private by starting the
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringname with a '.'. They will not be stored in the database, and not be
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringexported with the event.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringFirmware files are looked up in:
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringATA devices switched the property from ID_BUS=scsi to ID_BUS=ata.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringata_id, instead of scsi_id, is the default tool now for ATA devices.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringThe configure options have changed because another library needs to be
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringinstalled in a different location. Instead of exec_prefix and udev_prefix,
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringlibdir, rootlibdir and libexecdir are used. The Details are explained in
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringthe README file.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringEvent processes now get re-used after they handled an event. This reduces
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringthe number of forks and the pressure on the CPU significantly, because
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringcloned event processes no longer cause page faults in the main daemon.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringAfter the events have settled, a few worker processes stay around for
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringfuture events, all others get cleaned up.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringTo be able to use signalfd(), udev depends on kernel version 2.6.25 now.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringAlso inotify support is mandatory now to run udev.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringThe format of the queue exported by the udev damon has changed. There is
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringno longer a /dev/.udev/queue/ directory. The current event queue can be
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringaccessed with udevadm settle and libudedv.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringLibudev does not have the unstable API header anymore. From now on,
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringincompatible changes will be handled by bumping the library major version.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringTo build udev from the git tree gtk-doc is needed now. The tarballs will
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringbuild without it and contain the pre-built documentation. An online copy
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringis available here:
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poettering http://www.kernel.org/pub/linux/utils/kernel/hotplug/libudev/
1579dd2c9b8f97e5ec4016d3928d73fea160e55aLennart PoetteringThe tools from the udev-extras repository have been merged into the main
1579dd2c9b8f97e5ec4016d3928d73fea160e55aLennart Poetteringudev repository. Some of the extras have larger external dependencies, and
1579dd2c9b8f97e5ec4016d3928d73fea160e55aLennart Poetteringthey can be disabled with the configure switch --disable-extras.
1579dd2c9b8f97e5ec4016d3928d73fea160e55aLennart PoetteringThe program vol_id and the library libvolume_id are removed from the
1579dd2c9b8f97e5ec4016d3928d73fea160e55aLennart Poetteringrepository. Libvolume_id is merged with libblkid from the util-linux-ng
1579dd2c9b8f97e5ec4016d3928d73fea160e55aLennart Poetteringpackage. Persistent disk links for label and uuid depend on the
1579dd2c9b8f97e5ec4016d3928d73fea160e55aLennart Poetteringutil-linux-ng version (2.15) of blkid now. Older versions of blkid
1579dd2c9b8f97e5ec4016d3928d73fea160e55aLennart Poetteringcan not be used with udev.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringLibudev allows to subscribe to udev events. To prevent unwanted messages
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringto be delivered, and waking up the subscribing process, a filter can be
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringinstalled, to drop messages inside a kernel socket filter. The filters
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringmatch on the <subsytem>:<devtype> properties of the device.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poettering This is part of the ongoing effort to replace HAL, and switch current
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringusers over to directly use libudev.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poettering Libudev is still marked as experimental, and its interface might
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringeventually change if needed, but no major changes of the currently exported
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringinterface are expected anymore, and a first stable release should happen
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringA too old kernel (2.6.21) or a kernel with CONFIG_SYSFS_DEPRECATED
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringis not supported since while and udevd will log an error message at
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringstartup. It should still be able to boot-up, but advanced rules and system
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringservices which depend on the information not available in the old sysfs
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringformat will fail to work correctly.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringDVB device naming is supplied by the kernel now. In case older kernels
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringneed to be supported, the old shell script should be added to a compat
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringThe processed udev events get send back to the netlink socket. Libudev
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringprovides access to these events. This is work-in-progress, to replace
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringthe DeviceKit daemon functionality directly with libudev. There are
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringupcoming kernel changes to allow non-root users to subcribe to these
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poettering"udevadm settle" now optionally accepts a range of events to wait for,
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringinstead of waiting for "all" events.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringThe installed watch for block device metadata changes is now removed
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringduring event hadling, because some (broken) tools may be called from udev
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringrules and (wrongly) open the device with write access. After the finished
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringevent handling the watch is restored.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringDevice nodes can be watched for changes with inotify with OPTIONS="watch".
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringIf closed after being opened for writing, a "change" uevent will occur.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poettering/dev/disk/by-{label,uuid}/* symlinks will be automatically updated.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringThe udevadm test command has no longer a --force option, nodes and symlinks
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringare always updated with a test run now.
1579dd2c9b8f97e5ec4016d3928d73fea160e55aLennart PoetteringThe udevd daemon can be started with --resolve-names=never to avoid all user
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringand group lookups (e.g. in cut-down systems) or --resolve-names=late to
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringlookup user and groups every time events are handled.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringWe are currently merging the Ubuntu rules in the udev default rules,
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringand get one step closer to provide a common Linux /dev setup, regarding
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringdevice names, symlinks, and default device permissions. On udev startup,
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringwe now expect the following groups to be resolvable to their ids with
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringglibc's getgrnam():
1a2d5fbe7efa04181a2d5518bc510b84b280baf9David Herrmann disk, cdrom, floppy, tape, audio, video, lp, tty, dialout, kmem.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringLDAP setups need to make sure, that these groups are always resolvable at
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringbootup, with only the rootfs mounted, and without network access available.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringSome systems may need to add some new, currently not used groups, or need
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringto add some users to new groups, but the cost of this change is minimal,
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringcompared to the pain the current, rather random, differences between the
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringvarious distributions cause for upstream projects and third-party vendors.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringIn general, "normal" users who log into a machine should never be a member
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringof any such group, but the device-access should be managed by dynamic ACLs,
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringwhich get added and removed for the specific users on login/logout and
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringsession activity/inactivity. These groups are only provided for custom setups,
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringand mainly system services, to allow proper privilege separation.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringA video-streaming daemon uid would be a member of "audio" and "video", to get
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringaccess to the sound and video devices, but no "normal" user should ever belong
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringto the "audio" group, because he could listen to the built-in microphone with
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringany ssh-session established from the other side of the world.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poettering/dev/serial/by-{id,path}/ now contains links for ttyUSB devices,
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringwhich do not depend on the kernel device name. As usual, unique
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringdevices - only a single one per product connected, or a real
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringUSB serial number in the device - are always found with the same
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringname in the by-id/ directory.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringCompletely identical devices may overwrite their names in by-id/
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringand can only be found reliably in the by-path/ directory. Devices
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringspecified by by-path/ must not change their connection, like the
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringUSB port number they are plugged in, to keep their name.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringTo support some advanced features, Linux 2.6.22 is the oldest supported
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringversion now. The kernel config with enabled SYSFS_DEPRECATED is no longer
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringsupported. Older kernels should still work, and devices nodes should be
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringreliably created, but some rules and libudev will not work correctly because
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringthe old kernels do not provide the expected information or interfaces.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringFix for a possible segfault while swapping network interface names in udev
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringversions 131-134.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringThe group "video" is part of the default rules now.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringBugfix for kernels using SYSFS_DEPRECATED* option and finding parent
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringblock devices in some cases. No common distro uses this option anymore,
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringand we do not get enough testing for this and recent udev versions. If
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringthis option is not needed to run some old distro with a new kernel,
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringit should be disabled in the kernel config.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringBugfix for the $links substitution variable, which may crash if no links
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringare created. This should not happen in usual setups because we always
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringcreate /dev/{block,char}/ links.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringThe strings of the parsed rules, which are kept in memory, no longer
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringcontain duplicate entries, or duplicate tails of strings. This, and the
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringnew rules parsing/matching code reduces the total in-memory size of
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringa huge distro rule sets to 0.08 MB, compared to the 1.2MB of udev
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringThe export of DEVTYPE=disk/partition got removed from the default
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringrules. This value is available from the kernel. The pnp shell script
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringmodprobe hack is removed from the default rules. ACPI devices have _proper_
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringmodalias support and take care of the same functionality.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringInstallations which support old kernels, but install current default
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart Poetteringudev rules may want to add that to the compat rules file.
481a0aa2c9803a62cda413b8a1d05571957bb4b5Lennart PoetteringLibvolume_id now always probes for all known filesystems, and does not
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringstop at the first match. Some filesystems are marked as "exclusive probe",
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringand if any other filesytem type matches at the same time, libvolume_id
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringwill, by default, not return any probing result. This is intended to prevent
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringmis-detection with conflicting left-over signatures found from earlier
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringfile system formats. That way, we no longer depend on the probe-order
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringin case of multiple competing signatures. In some setups the kernel allows
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringto mount a volume with just the old filesystem signature still in place.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringThis may damage the new filesystem and cause data-loss, just by mounting
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringit. Because volume_id can not decide which one the correct signature is,
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringthe wrong signatures need to be removed manually from the volume, or the
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringvolume needs to be reformatted, to enable filesystem detection and possible
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringFix segfault if compiled without optimization and dbg() does not get
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringcompiled out and uses variables which are not available.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringBugfixes. (And maybe new bugs. :))
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringThe rule matching engine got converted from a rule list to a token
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringarray which reduced the in-memory rules representation of a full
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringfeatured distros with thousends of udev rules from 1.2MB to 0.12 MB.
7edecf218e5884ec8d1549707b4c7a0572c2d93bThomas Hindoe Paaboel AndersenLimits like 5 ENV and ATTR matches, and one single instance for most
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringother keys per rule are gone.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringThe NAME assignment is no longer special cased. If later rules assign
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringa NAME value again, the former value will be overwritten. As usual
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringfor most other keys, the NAME value can be protected by doing a final
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringassignment with NAME:="<value>".
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringAll udev code now uses libudev, which is also exported. The library
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringis still under development, marked as experimental, and its interface
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringmay change as long as the DeviceKit integration is not finished.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringMany thanks to Alan Jenkins for his continuous help, and finding and
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringoptimizing some of the computing expensive parts.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringKernel devices and device nodes are connected now by reverse indizes in
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poettering/sys and /dev. A device number retrieved by a stat() or similar, the
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringkernel device directory can be found by looking up:
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poettering /sys/dev/{block,char}/<maj>:<min>
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringand the device node of the same device by looking up:
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poettering /dev/{block,char}/<maj>:<min>
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringFix recently introduced bug, which caused a compilation without large
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringfile support, where vol_id does not recognize raid signatures at the end
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringFirewire disks now create both, by-id/scsi-* and by-id/ieee-* links.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringSeems some kernel versions prevent the creation of the ieee-* links,
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringso people used the scsi-* link which disappeared now.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringMore libudev work. Almost all udevadm functionality comes from libudev
94e5ba370aa12b47571f08112986d0b91935dee9Torstein Husebøudevadm trigger has a new option --type, which allows to trigger events
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringfor "devices", for "subsystems", or "failed" devices. The old option
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poettering--retry-failed" still works, but is no longer mentioned in the man page.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringThe udevadm info --device-id-of-file= output has changed to use
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringthe obvious format. Possible current users should use the --export
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringoption which is not affected.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringThe old udev commands symlinks to udevadm are not installed, if
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringthese symlinks are used, a warning is printed.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringOptical drive's media is no longer probed for raid signatures,
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringreading the end of the device causes some devices to malfunction.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringAlso the offset of the last session found is used now to probe
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringfor the filesystem.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringThe volume_id library got a major version number update to 1,
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringsome deprecated functions are removed.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringA shared library "libudev" gets installed now to provide access
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringto udev device information. DeviceKit, the successor of HAL, will
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringneed this library to access the udev database and search sysfs for
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringThe library is currently in an experimental state, also the API is
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringexpected to change, as long as the DeviceKit integration is not
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringWe use ./configure now. See INSTALL for details. Current
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poettering "/usr" - prefix for man pages, include files
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poettering --exec-prefix=
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poettering "" - the root filesystem, prefix for libs and binaries
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poettering --with-libdir-name=
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poettering "lib" - directory name for libraries, not a path name
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poettering multilib 64bit systems may use "lib64" instead of "lib"
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poettering --enable-debug
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poettering compile-in verbose debug messages
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poettering --disable-logging
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poettering disable all logging and compile-out all log strings
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poettering --with-selinux
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poettering link against SELInux libraries, to set the expected context
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poettering for created files
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringIn the default rules, the group "disk" gets permissions 0660 instead
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringof 0640. One small step closer to unify distro rules. Some day, all
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringdistros hopefully end up with the same set of rules.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringNo symlinks to udevadm are installed anymore, if they are still needed,
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringthey should be provided by the package.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringDefault udev rules, which are not supposed to be edited by the user, should
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringbe placed in /lib/udev/rules.d/ now, to make it clear that they are private to
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringthe udev package and will be replaced with an update. Udev will pick up rule
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poettering /lib/udev/rules.d/ - default installed rules
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poettering /etc/udev/rules.d/ - user rules + on-the-fly generated rules
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poettering /dev/.udev/rules.d/ - temporary non-persistent rules created after bootup
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringIt does not matter in which directory a rule file lives, all files are sorted
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringin lexical order.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringTo help creating /dev/root, we have now:
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poettering $ udevadm info --export --export-prefix="ROOT_" --device-id-of-file=/
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringIn case the current --device-id-of-file is already used, please switch to
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringthe --export format version, it saves the output parsing and the old
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringformat will be changed to use ':' as a separator, like the format in the
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringsysfs 'dev' file.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringFix cdrom_id to properly recognize blank media.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringTape drive id-data is queried from /dev/bsg/* instead of the tape
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringnodes. This avoids rewinding tapes on open().
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringThe symlinks udevcontrol and udevtrigger are no longer installed by
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringThe scsi_id program does not depend on sysfs anymore. It can speak
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringSGv4 now, so /dev/bsg/* device nodes can be used, to query SCSI device
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringdata, which should solve some old problems with tape devices, where
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringwe better do not open all tape device nodes to identify the device.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringThe cdrom_id program is replaced by an advanced version, which can
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringdetect most common device types, and also properties of the inserted
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringmedia. This is part of moving some basic functionality from HAL into
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringudev (and the kernel).
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringThe last WAIT_FOR_SYSFS rule is removed from the default rules.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringThe symlinks to udevadm for the debugging tools: udevmonitor and
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringudevtest are no longer created.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringThe symlinks to the udevadm man page for the old tool names are
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringno longer created.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringAbstract namespace sockets paths in RUN+="socket:@<path>" rules,
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringshould be prefixed with '@' to indicate that the path is not a
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringUdevstart is removed from the tree, it did not get installed for
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringa long time now, and is long replaced by trigger and settle.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringAll udev tools are merged into a single binary called udevadm.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringThe old names of the tools are built-in commands in udevadm now.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringSymlinks to udevadm, with the names of the old tools, provide
dd2fd155901a965ec0efa3adc460b33d2048d4c2Lennart Poetteringthe same functionality as the standalone tools. There is also
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringonly a single udevadm.8 man page left for all tools.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringTools like mkinitramfs should be checked, if they need to include
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringudevadm in the list of files.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringThe etc/udev/rules.d/ directory now contains a default set of basic
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringudev rules. This initial version is the result of a rules file merge
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringof Fedora and openSUSE. For these both distros only a few specific
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringrules are left in their own file, named after the distro. Rules which
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringare optionally installed, because they are only valid for a specific
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringarchitecture, or rules for subsystems which are not always used are
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringDynamic rules can be created in /dev/.udev/rules.d/ to trigger
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringactions by dynamically created rules.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringSYMLINK=="<value>" matches agains the entries in the list of
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringcurrently defined symlinks. The links are not created in the
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringfilesystem at that point in time, but the values can be matched.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringRUN{ignore_error}+="<program>" will ignore any exit code from the
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringprogram and not record as a failed event.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringFinal merge of patches/features from the Ubuntu package.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringControl characters in filesystem label strings are no longer silenty
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringremoved, but hex-encoded, to be able to uniquely identify the device
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringby its symlink in /dev/disk/by-label/.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringIf libvolume_id is used by mount(8), LABEL= will work as expected,
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringif slashes or other characters are used in the label string.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringTo test the existence of a file, TEST=="<file>" and TEST!="<file>"
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringcan be specified now. The TEST key accepts an optional mode mask
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringTEST{0100}=="<is executable file>".
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringScsi_id now supports a mode without expecting scsi-specific sysfs
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringentries to allow the extraction of cciss-device persistent properties.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringIn the future, we may see uuid's which are just simple character
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringstrings (see the DDF Raid Specification). For that reason vol_id now
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringexports ID_FS_UUID_SAFE, just like ID_FS_LABEL_SAFE. For things like
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringthe creation of symlinks, the *_SAFE values ensure, that no control
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart Poetteringor whitespace characters are used in the filename.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringPossible users of libvolume_id, please use the volume_id_get_* functions.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringThe public struct will go away in a future release of the library.
615aaf412c441e67c7cad2e5ae966b03fca1fae7Lennart PoetteringRemoval of useless extras/eventrecorder.sh.
d2c643c662e2cb3b6d1445c17c80b4b2998d5c61Lennart PoetteringThe directory multiplexer for dev.d/ and hotplug.d are finally removed
d2c643c662e2cb3b6d1445c17c80b4b2998d5c61Lennart Poetteringfrom the udev package.
d2c643c662e2cb3b6d1445c17c80b4b2998d5c61Lennart PoetteringSymlinks can have priorities now, the priority is assigned to the device
d2c643c662e2cb3b6d1445c17c80b4b2998d5c61Lennart Poetteringand specified with OPTIONS="link_priority=100". Devices with higher
d2c643c662e2cb3b6d1445c17c80b4b2998d5c61Lennart Poetteringpriorities overwrite the symlinks of devices with lower priorities.
11ea2781eea4b912d2feb26785ece475e504c57bLennart PoetteringIf the device that currently owns the link, goes away, the symlink
11ea2781eea4b912d2feb26785ece475e504c57bLennart Poetteringwill be removed, and recreated, pointing to the next device with the
11ea2781eea4b912d2feb26785ece475e504c57bLennart Poetteringhighest actual priority. This should make /dev/disk/by-{label,uuid,id}
11ea2781eea4b912d2feb26785ece475e504c57bLennart Poetteringmore reliable, if multiple devices contain the same metadata and overwrite
11ea2781eea4b912d2feb26785ece475e504c57bLennart Poetteringthese symlinks.
11ea2781eea4b912d2feb26785ece475e504c57bLennart PoetteringThe dasd_id program is removed from the udev tree, and dasdinfo, with the
d2c643c662e2cb3b6d1445c17c80b4b2998d5c61Lennart Poetteringneeded rules, are part of the s390-tools now.
11ea2781eea4b912d2feb26785ece475e504c57bLennart PoetteringPlease add KERNEL=="[0-9]*:[0-9]*" to the scsi wait-for-sysfs rule,
d2c643c662e2cb3b6d1445c17c80b4b2998d5c61Lennart Poetteringwe may get the scsi sysfs mess fixed some day, and this will only catch
11ea2781eea4b912d2feb26785ece475e504c57bLennart Poetteringthe devices we are looking for.
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David HerrmannUSB serial numbers for storage devices have the target:lun now appended,
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringto make it possibble to distinguish broken multi-lun devices with all
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringthe same SCSI identifiers.
c7683ffb53da4ad4334cc9f813e39cffed7e0d0bEvgeny VereshchaginNote: The extra "run_directory" which searches and executes stuff in
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poettering/etc/hotplug.d/ and /etc/dev.d/ is long deprecated, and will be removed
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringwith the next release. Make sure, that you don't use it anymore, or
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringprovides your own implementation of that inefficient stuff.
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringWe are tired of reports about a "slow udev", because these directories
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringcontain stuff, that runs with _every_ event, instead of using rules,
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringthat run programs only for the matching events.
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringDRIVER== will match only for devices that actually have a real
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringdriver. DRIVERS== must be used, if parent devices should be
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringincluded in the match.
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringLibvolume_id's "linux_raid" detection needed another fix.
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringAdd additional check to volume_id detection of via_raid, cause
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringsome company decided to put a matching pattern all over the empty
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringstorage area of their music players.
122676c9d9737f8591429fd5ffc9b454a994741dLennart PoetteringFix path_id for SAS devices.
122676c9d9737f8591429fd5ffc9b454a994741dLennart PoetteringThe udev daemon can be started with --debug-trace now, which will
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringexecute all events serialized to get a chance to catch a possible
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringaction that crashes the box.
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringA warning is logged, if PHYSDEV* keys, the "device" link, or a parent
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringdevice attribute like $attr{../file} is used, only WAIT_FOR_SYSFS rules
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringare excluded from the warning. Referencing parent attributes directly
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringmay break when something in the kernel driver model changes. Udev will
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringjust find the attribute by walking up the parent chain.
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringUdevtrigger now sorts the list of devices depending on the device
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringdependency, so a "usb" device is triggered after the parent "pci"
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringRevert persistent-storage ata-serial '_' '-' replacement.
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringUdevtrigger can now filter the list of devices to be triggered. Matches
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringfor subsystems or sysfs attributes can be specified.
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringThe entries in /dev/.udev/queue and /dev/.udev/failed have changed to
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringzero-sized files to avoid pointing to /sys and confuse broken tools which
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringscan the /dev directory. To retry failed events, udevtrigger --retry-failed
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringshould be used now.
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringThe rules and scripts to create udev rules for persistent network
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringdevices and optical drives are in the extras/rules_generator directory
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringnow. If you use something similar, please consider replacing your own
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringversion with this, to share the support effort. The rule_generator
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringinstalls its own rules into /etc/udev/rules.d.
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringThe cdrom_id tool installs its own rule now in /etc/udev/rules.d, cause
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringthe rule_generator depends on cdrom_id to be called in an earlier rule.
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringRenaming of some key names (the old names still work):
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringBUS -> SUBSYSTEMS, ID -> KERNELS, SYSFS -> ATTRS, DRIVER -> DRIVERS.
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poettering(The behavior of the key DRIVER will change soon in one of the next
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringreleases, to match only the event device, please switch to DRIVERS
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringinstead. If DRIVER is used, it will behave like DRIVERS, but an error
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringWith the new key names, we have a more consistent and simpler scheme.
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringWe can match the properties of the event device only, with: KERNEL,
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringSUBSYSTEM, ATTR, DRIVER. Or include all the parent devices in the match,
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringwith: KERNELS, SUBSYSTEMS, ATTRS, DRIVERS. ID, BUS, SYSFS, DRIVER are no
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringlonger mentioned in the man page and should be switched in the rule
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringATTR{file}="value" can be used now, to write to a sysfs file of the
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringevent device. Instead of:
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poettering ..., SYSFS{type}=="0|7|14", RUN+="/bin/sh -c 'echo 60 > /sys$$DEVPATH/timeout'"
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poettering ..., ATTR{type}=="0|7|14", ATTR{timeout}="60"
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringAll the PHYSDEV* keys are deprecated and will be removed from a
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poettering PHYDEVPATH - is the path of a parent device and should not be
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poettering needed at all.
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann PHYSDEVBUS - is just a SUBSYSTEM value of a parent, and can be
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann matched with SUBSYSTEMS==
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann PHYSDEVDRIVER - for bus devices it is available as ENV{DRIVER}.
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann Newer kernels will have DRIVER in the environment,
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann for older kernels udev puts in. Class device will
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poettering no longer carry this property of a parent and
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poettering DRIVERS== can be used to match such a parent value.
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringNote that ENV{DRIVER} is only available for a few bus devices, where
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringthe driver is already bound at device event time. On coldplug, the
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringevents for a lot devices are already bound to a driver, and they will have
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringthat value set. But on hotplug, at the time the kernel creates the device,
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringit can't know what driver may claim the device after that, therefore
17c29493dc5c4c3ca886adfdc632d297c5eb06ebRonny Chevalierin most cases it will be empty.
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringFailed events should now be re-triggered with:
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poettering udevtrigger --retry-failed.
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringPlease switch to this command, so we keep the details of the /dev/.udev/failed/
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringfiles private to the udev tools. We may need to switch the current symlink
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringtarget, cause some obviously broken tools try to scan all files in /dev
997b2b438c2d272e3bc8df6e4b42dba3b70cb056Josh Triplettincluding /dev/.udev/, find the links to /sys and end up stat()'ing sysfs files
997b2b438c2d272e3bc8df6e4b42dba3b70cb056Josh Triplettmillion times. This takes ages on slow boxes.
997b2b438c2d272e3bc8df6e4b42dba3b70cb056Josh TriplettThe udevinfo attribute walk (-a) now works with giving a device node
997b2b438c2d272e3bc8df6e4b42dba3b70cb056Josh Triplettname (-n) instead of a devpath (-p). The query now always works, also when
997b2b438c2d272e3bc8df6e4b42dba3b70cb056Josh Triplettno database file was created by udev.
997b2b438c2d272e3bc8df6e4b42dba3b70cb056Josh TriplettThe built-in /etc/passwd /etc/group parser is removed, we always depend on
997b2b438c2d272e3bc8df6e4b42dba3b70cb056Josh Triplettgetpwnam() and getgrnam() now. One of the next releases will depend on
997b2b438c2d272e3bc8df6e4b42dba3b70cb056Josh Triplettfnmatch() and may use getopt_long().
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringBugfixes and small improvements.
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringFix path_id for recent kernels.
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poettering%e is finally gone.
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringAdded support for swapping network interface names, by temporarily
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringrenaming the device and wait for the target name to become free.
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringThe built-in MODALIAS key and substitution is removed.
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringThe binary firmware helper is replaced by the usual simple
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringshell script. Udevsend is removed from the tree.
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringBugfix release.
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringSome more keys require the correct use of '==' and '=' depending
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringon the kind of operation beeing an assignment or a match. Rules
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringwith invalid operations are skipped and logged to syslog. Please
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringtest with udevtest if the parsing of your rules throws errors and
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringfix possibly broken rules.
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringProvide "udevsettle" to wait for all current udev events to finish.
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart PoetteringIt also watches the current kernel netlink queue by comparing the
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringeven sequence number to make sure that there are no current pending
f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1Lennart Poetteringevents that have not already arrived in the daemon.
13e92f3966552091085982f4ebdeb38721f04a30Lennart PoetteringFix rule to skip persistent rules for removable IDE devices, which
13e92f3966552091085982f4ebdeb38721f04a30Lennart Poetteringalso skipped optical IDE drives.
13e92f3966552091085982f4ebdeb38721f04a30Lennart PoetteringAll *_id program are installed in /lib/udev/ by default now.
13e92f3966552091085982f4ebdeb38721f04a30Lennart PoetteringNo binary is stripped anymore as this should be done in the
13e92f3966552091085982f4ebdeb38721f04a30Lennart Poetteringpackaging process and not at build time.
7da81d33c147f4d6397efa1fdd08ba0a40c9c457Lennart Poetteringlibvolume_id is provided as a shared library now and vol_id is
7da81d33c147f4d6397efa1fdd08ba0a40c9c457Lennart Poetteringlinked against it. Also one of the next HAL versions will require
7da81d33c147f4d6397efa1fdd08ba0a40c9c457Lennart Poetteringthis library, and the HAL build process will also require the
7da81d33c147f4d6397efa1fdd08ba0a40c9c457Lennart Poetteringheader file to be installed. The copy of the same code in HAL will
7da81d33c147f4d6397efa1fdd08ba0a40c9c457Lennart Poetteringbe removed to have only a single copy left on the system.
13e92f3966552091085982f4ebdeb38721f04a30Lennart PoetteringAdd persistent links for SCSI tapes. The rules file is renamed
b62a309a47dd11e11729616767421397b6ca7053Zbigniew Jędrzejewski-SzmekCreate persistent path for usb devices. Can be used for all sorts
78b6b7ceb2c76a3e29aeaa4b00c257be0706bffcLennart Poetteringof devices that can't be distinguished by other properties like
78b6b7ceb2c76a3e29aeaa4b00c257be0706bffcLennart Poetteringmultiple identical keyboards and mice connected to the same box.
78b6b7ceb2c76a3e29aeaa4b00c257be0706bffcLennart PoetteringProvide "udevtrigger" program to request events on coldplug. The
b62a309a47dd11e11729616767421397b6ca7053Zbigniew Jędrzejewski-Szmekshell script is much too slow with thousends of devices.
a65b82457735df2ef58736a55846f400124a8dc0Zbigniew Jędrzejewski-SzmekFix persistent disk rules to exclude removable IDE drives.
b62a309a47dd11e11729616767421397b6ca7053Zbigniew Jędrzejewski-SzmekWarn if %e, $modalias or MODALIAS is used.
78b6b7ceb2c76a3e29aeaa4b00c257be0706bffcLennart PoetteringFix queue export, which wasn't correct for subsequent add/remove
4bdc60cb6fab336d455abbbd269e5bfccf760c91Lennart Poetteringevents for the same device.
b62a309a47dd11e11729616767421397b6ca7053Zbigniew Jędrzejewski-SzmekFix cramfs detection on big endian.
b62a309a47dd11e11729616767421397b6ca7053Zbigniew Jędrzejewski-SzmekMake WAIT_FOR_SYSFS usable in "normal" rules and silent if the whole
b62a309a47dd11e11729616767421397b6ca7053Zbigniew Jędrzejewski-Szmekdevice goes away.
4ffd29fda1a2621d8f1711ccaad723d327fef93aLennart PoetteringIf BUS== and SYSFS{}== have been used in the same rule, the sysfs
4ffd29fda1a2621d8f1711ccaad723d327fef93aLennart Poetteringattributes were only checked at the parent device that matched the
4ffd29fda1a2621d8f1711ccaad723d327fef93aLennart Poetteringby BUS requested subsystem. Fix it to also look at the device we
4ffd29fda1a2621d8f1711ccaad723d327fef93aLennart Poetteringreceived the event for.
4ffd29fda1a2621d8f1711ccaad723d327fef93aLennart PoetteringBuild variable CROSS has changed to CROSS_COMPILE to match the kernel
4ffd29fda1a2621d8f1711ccaad723d327fef93aLennart PoetteringFix a bug where NAME="" would prevent RUN from beeing executed.
4ffd29fda1a2621d8f1711ccaad723d327fef93aLennart PoetteringRUN="/bin/program" does not longer automatically add the subsystem
4ffd29fda1a2621d8f1711ccaad723d327fef93aLennart Poetteringas the first parameter. This is from the days of /sbin/hotplug
4ffd29fda1a2621d8f1711ccaad723d327fef93aLennart Poetteringwhich is dead now and it's just confusing to need to add a space at
4ffd29fda1a2621d8f1711ccaad723d327fef93aLennart Poetteringthe end of the program name to prevent this.
b62a309a47dd11e11729616767421397b6ca7053Zbigniew Jędrzejewski-SzmekIf you use rules that need the subsystem as the first parameter,
b62a309a47dd11e11729616767421397b6ca7053Zbigniew Jędrzejewski-Szmeklike the old "udev_run_hotlugd" and "udev_run_devd", add the subsystem
b62a309a47dd11e11729616767421397b6ca7053Zbigniew Jędrzejewski-Szmekto the key like RUN+="/bin/program $env{SUBSYSTEM}".
b62a309a47dd11e11729616767421397b6ca7053Zbigniew Jędrzejewski-SzmekThe udev man page has moved to udev(7) as it does not describe a command
81c7dd897c6af68e66b58e97abce676641edc197Lennart Poetteringanymore. The programs udev, udevstart and udevsend are no longer installed
b62a309a47dd11e11729616767421397b6ca7053Zbigniew Jędrzejewski-Szmekby default and must be copied manually, if they should be installed or
78b6b7ceb2c76a3e29aeaa4b00c257be0706bffcLennart Poetteringincluded in a package.
78b6b7ceb2c76a3e29aeaa4b00c257be0706bffcLennart PoetteringFix a bug where "ignore_device" could run earlier collected RUN keys before
090771492f155cebe7075171530e96c1cd515d71Lennart Poetteringthe ignore rule was applied.
b62a309a47dd11e11729616767421397b6ca7053Zbigniew Jędrzejewski-SzmekMore preparation for future sysfs changes. usb_id and scsi_id no longer
b62a309a47dd11e11729616767421397b6ca7053Zbigniew Jędrzejewski-Szmekdepend on a magic order of devices in the /devices chain. Specific devices
b62a309a47dd11e11729616767421397b6ca7053Zbigniew Jędrzejewski-Szmekshould be requested by their subsytem.
78b6b7ceb2c76a3e29aeaa4b00c257be0706bffcLennart PoetteringThis will always find the scsi parent device without depending on a specific
b62a309a47dd11e11729616767421397b6ca7053Zbigniew Jędrzejewski-Szmek dev = sysfs_device_get(devpath);
b62a309a47dd11e11729616767421397b6ca7053Zbigniew Jędrzejewski-Szmek dev_usb = sysfs_device_get_parent_with_subsystem(dev, "scsi");
b62a309a47dd11e11729616767421397b6ca7053Zbigniew Jędrzejewski-SzmekThe "device" link in the current sysfs layout will be automatically
b62a309a47dd11e11729616767421397b6ca7053Zbigniew Jędrzejewski-Szmek_resolved_ as a parent and in the new sysfs layout it will just _be_ the
b62a309a47dd11e11729616767421397b6ca7053Zbigniew Jędrzejewski-Szmekparent in the devpath. If a device is requested by it's symlink, like all
b62a309a47dd11e11729616767421397b6ca7053Zbigniew Jędrzejewski-Szmekclass devices in the new sysfs layout will look like, it gets automatically
b62a309a47dd11e11729616767421397b6ca7053Zbigniew Jędrzejewski-Szmekresolved and substituted with the real devpath and not the symlink path.
4bdc60cb6fab336d455abbbd269e5bfccf760c91Lennart PoetteringA similar logic must be applied to _all_ sysfs users, including
f6d1de8547b1e957773f8b6764420579c8378aafRonny Chevalierscripts, that search along parent devices in sysfs. The explicit use of
b62a309a47dd11e11729616767421397b6ca7053Zbigniew Jędrzejewski-Szmekthe "device" link must be avoided. With the future sysfs layout all
78b6b7ceb2c76a3e29aeaa4b00c257be0706bffcLennart PoetteringDEVPATH's will start with /devices/ and have a "subsystem" symlink poiting
78b6b7ceb2c76a3e29aeaa4b00c257be0706bffcLennart Poetteringback to the "class" or the "bus". The layout of the parent devices in
78b6b7ceb2c76a3e29aeaa4b00c257be0706bffcLennart Poettering/devices is not necessarily expected to be stable across kernel releases and
b62a309a47dd11e11729616767421397b6ca7053Zbigniew Jędrzejewski-Szmeksearching for parents by their subsystem should make sysfs users tolerant
c4ac990007cd0069bb7e76ec15dd731320f382fdLennart Poetteringfor changed parent chains.
b62a309a47dd11e11729616767421397b6ca7053Zbigniew Jędrzejewski-SzmekPrepare udev to work with the experimental kernel patch, that moves
b62a309a47dd11e11729616767421397b6ca7053Zbigniew Jędrzejewski-Szmek/sys/class devices to /sys/devices and /sys/block to /sys/class/block.
b62a309a47dd11e11729616767421397b6ca7053Zbigniew Jędrzejewski-SzmekClarify BUS, ID, $id usage and fix $id behavior. This prepares for
ba8df74bb643c0f7c343fef78bba3661b0f9c31cKay Sieversmoving the class devices to /sys/devices.
78b6b7ceb2c76a3e29aeaa4b00c257be0706bffcLennart PoetteringThanks again to Marco for help finding a hopefully nice compromise
b62a309a47dd11e11729616767421397b6ca7053Zbigniew Jędrzejewski-Szmekto make %b simpler and working again.
e6c253e363dee77ef7e5c5f44c4ca55cded3fd47Michal SchmidtComplete removal of libsysfs, replaced by simple helper functions
ba8df74bb643c0f7c343fef78bba3661b0f9c31cKay Sieverswhich are much simpler and a bit faster. The udev daemon operatesentirely
ba8df74bb643c0f7c343fef78bba3661b0f9c31cKay Sieverson event parameters and does not use sysfs for simple rules anymore.
e6c253e363dee77ef7e5c5f44c4ca55cded3fd47Michal SchmidtPlease report any new bugs/problems, that may be caused by this big
e6c253e363dee77ef7e5c5f44c4ca55cded3fd47Michal Schmidtchange. They will be fixed immediately.
e6c253e363dee77ef7e5c5f44c4ca55cded3fd47Michal SchmidtThe enumeration format character '%e' is deprecated and will be
e6c253e363dee77ef7e5c5f44c4ca55cded3fd47Michal Schmidtremoved sometimes from a future udev version. It never worked correctly
e6c253e363dee77ef7e5c5f44c4ca55cded3fd47Michal Schmidtoutside of udevstart, so we can't use it with the new parallel
4bdc60cb6fab336d455abbbd269e5bfccf760c91Lennart Poetteringcoldplug. A simple enumeration is as useless as the devfs naming
4bdc60cb6fab336d455abbbd269e5bfccf760c91Lennart Poetteringscheme, just get rid of both if you still use it.
4bdc60cb6fab336d455abbbd269e5bfccf760c91Lennart PoetteringMODALIAS and $modalias is not needed and will be removed from one of
4bdc60cb6fab336d455abbbd269e5bfccf760c91Lennart Poetteringthe next udev versions, replace it in all rules with ENV{MODALIAS} or
4bdc60cb6fab336d455abbbd269e5bfccf760c91Lennart Poetteringthe sysfs "modalias" value.
4bdc60cb6fab336d455abbbd269e5bfccf760c91Lennart PoetteringThanks a lot to Marco for all his help on finding and fixing bugs.
4bdc60cb6fab336d455abbbd269e5bfccf760c91Lennart PoetteringLet scsi_id request libata drive serial numbers from page 0x80.
4bdc60cb6fab336d455abbbd269e5bfccf760c91Lennart PoetteringRenamed etc/udev/persistent.rules to persistent-disk.rules and
4bdc60cb6fab336d455abbbd269e5bfccf760c91Lennart Poetteringadded /dev/disk/by-name/* for device mapper device names.
78b6b7ceb2c76a3e29aeaa4b00c257be0706bffcLennart PoetteringRemoved %e from the man page. It never worked reliably outside
78b6b7ceb2c76a3e29aeaa4b00c257be0706bffcLennart Poetteringof udevstart and udevstart is no longer recommended to use.
78b6b7ceb2c76a3e29aeaa4b00c257be0706bffcLennart PoetteringSymlinks are now exported to the event environment. Hopefully it's no
78b6b7ceb2c76a3e29aeaa4b00c257be0706bffcLennart Poetteringlonger needed to run udevinfo from an event process, like it was
78b6b7ceb2c76a3e29aeaa4b00c257be0706bffcLennart Poetteringmentioned on the hotplug list:
78b6b7ceb2c76a3e29aeaa4b00c257be0706bffcLennart Poettering UDEV [1134776873.702967] add@/block/sdb
78b6b7ceb2c76a3e29aeaa4b00c257be0706bffcLennart Poettering DEVLINKS=/dev/disk/by-id/usb-IBM_Memory_Key_0218B301030027E8 /dev/disk/by-path/usb-0218B301030027E8:0:0:0
78b6b7ceb2c76a3e29aeaa4b00c257be0706bffcLennart PoetteringFix a problem if udevsend is used as the hotplug handler and tries to use
78b6b7ceb2c76a3e29aeaa4b00c257be0706bffcLennart Poetteringsyslog, which causes a "vc" event loop. 2.6.15 will make udevsend obsolete
f6d1de8547b1e957773f8b6764420579c8378aafRonny Chevalierand this kind of problems will hopefully go away soon.
78b6b7ceb2c76a3e29aeaa4b00c257be0706bffcLennart PoetteringAll built-in logic to work around bad sysfs timing is removed with this
78b6b7ceb2c76a3e29aeaa4b00c257be0706bffcLennart Poetteringversion. The need to wait for sysfs files is almost fixed with a kernel
78b6b7ceb2c76a3e29aeaa4b00c257be0706bffcLennart Poetteringversion that doesn't work with this udev version anyway. Until we fix
78b6b7ceb2c76a3e29aeaa4b00c257be0706bffcLennart Poetteringthe timing of the "bus" link creation, the former integrated logic should
78b6b7ceb2c76a3e29aeaa4b00c257be0706bffcLennart Poetteringbe emulated by a rule placed before all other rules:
3769415e6573da64fb80e31f4bb3f850cd99031eTimofey Titovets ACTION=="add", DEVPATH=="/devices/*", ENV{PHYSDEVBUS}=="?*", WAIT_FOR_SYSFS="bus"
3769415e6573da64fb80e31f4bb3f850cd99031eTimofey TitovetsThe option "udev_db" does no longer exist. All udev state will be in
3769415e6573da64fb80e31f4bb3f850cd99031eTimofey Titovets/$udev_root/.udev/ now, there is no longer an option to set this
3769415e6573da64fb80e31f4bb3f850cd99031eTimofey Titovetsto anything else.
3769415e6573da64fb80e31f4bb3f850cd99031eTimofey TitovetsIf the init script or something else used this value, just depend on
fae9332b140ffa3c1b04c80ac4cd3f2796e8cf3cLennart Poetteringthis hardcoded path. But remember _all_content_ of this directory is
fae9332b140ffa3c1b04c80ac4cd3f2796e8cf3cLennart Poetteringstill private to udev and can change at any time.
fae9332b140ffa3c1b04c80ac4cd3f2796e8cf3cLennart PoetteringDefault location for rule sripts and helper programs is now: /lib/udev/.
ba8df74bb643c0f7c343fef78bba3661b0f9c31cKay SieversEverything that is not useful on the commandline should go into this
fae9332b140ffa3c1b04c80ac4cd3f2796e8cf3cLennart Poetteringdirectory. Some of the helpers in the extras folder are installed there
fae9332b140ffa3c1b04c80ac4cd3f2796e8cf3cLennart Poetteringnow. The rules need to be changed, to find the helpers there.
cfa1571b7f5a45927f76e54790974183a273d17aLennart PoetteringAlso /lib/udev/devices is recommended as a directory where packages or
cfa1571b7f5a45927f76e54790974183a273d17aLennart Poetteringthe user can place real device nodes, which get copied over to /dev at
cfa1571b7f5a45927f76e54790974183a273d17aLennart Poetteringevery boot. This should replace the various solutions with custom config
cfa1571b7f5a45927f76e54790974183a273d17aLennart PoetteringUdevsend does no longer start the udev daemon. This must be done with
cfa1571b7f5a45927f76e54790974183a273d17aLennart Poetteringthe init script that prepares /dev on tmpfs and creates the initial nodes,
7e63dd1015c9ac6fc2042e45b0a87a3f9f8b9336Lennart Poetteringbefore starting the daemon.
7e63dd1015c9ac6fc2042e45b0a87a3f9f8b9336Lennart PoetteringSilent a too verbose error logging for the old hotplug.d/ dev.d/
d4474c41ca3854db1b7a7b30765bb59fc570e1c4Tom GundersenThe copy of klibc is removed. A systemwide installed version of klibc
d4474c41ca3854db1b7a7b30765bb59fc570e1c4Tom Gundersenshould be used to build a klibc udev now.
3b187c5cee0a9584d7c31e10f9fe008b94cf6d58Lennart PoetteringNAME="" will not create any nodes, but execute RUN keys. To completely
3b187c5cee0a9584d7c31e10f9fe008b94cf6d58Lennart Poetteringignore an event the OPTION "ignore_device" should be used.
3b187c5cee0a9584d7c31e10f9fe008b94cf6d58Lennart PoetteringAfter removal of the reorder queue, events with a TIMEOUT can be executed
3b187c5cee0a9584d7c31e10f9fe008b94cf6d58Lennart Poetteringwithout any queuing now.
4b08dd87eebb4b634bdd5708ac1ba68dcee205b3Lennart PoetteringFixed bug in udevd, if inotify is not available. We depend on netlink
4b08dd87eebb4b634bdd5708ac1ba68dcee205b3Lennart Poetteringuevents now, kernels without that event source will not work with that
4b08dd87eebb4b634bdd5708ac1ba68dcee205b3Lennart Poetteringversion of udev anymore.
4b08dd87eebb4b634bdd5708ac1ba68dcee205b3Lennart PoetteringThe rule parsing happens now in the daemon once at startup, all udev
4b08dd87eebb4b634bdd5708ac1ba68dcee205b3Lennart Poetteringevent processes inherit the already parsed rules from the daemon.
4b08dd87eebb4b634bdd5708ac1ba68dcee205b3Lennart PoetteringIt is shipped with SUSE10.0 and reduces heavily the system load at
4b08dd87eebb4b634bdd5708ac1ba68dcee205b3Lennart Poetteringstartup. The option to save precompiled rules and let the udev process
4b08dd87eebb4b634bdd5708ac1ba68dcee205b3Lennart Poetteringpick the them up is removed, as it's no longer needed.
4b08dd87eebb4b634bdd5708ac1ba68dcee205b3Lennart PoetteringKernel 2.6.15 will have symlinks at /class/input pointing to the real
4b08dd87eebb4b634bdd5708ac1ba68dcee205b3Lennart Poetteringdevice. Libsysfs is changed to "translate" the requested link into the
4b08dd87eebb4b634bdd5708ac1ba68dcee205b3Lennart Poetteringreal device path, as it would happen with the hotplug event. Otherwise
4b08dd87eebb4b634bdd5708ac1ba68dcee205b3Lennart Poetteringdevice removal and the udev database will not work.
4b08dd87eebb4b634bdd5708ac1ba68dcee205b3Lennart PoetteringUsing 'make STRIPCMD=' will leave the binaries unstripped for debugging
13e92f3966552091085982f4ebdeb38721f04a30Lennart PoetteringA few improvements for vol_id, the filesytem probing code.
b72ddf0f4f552dd53d6404b6ddbc9f17d02b8e12Kay SieversFix a stupid typo in extras/run_directory for "make install".
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poetteringscsi_id creates the temporary devnode now in /dev for usage with a
b72ddf0f4f552dd53d6404b6ddbc9f17d02b8e12Kay Sieversnon-writable /tmp directory.
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart PoetteringThe uevent kernel socket buffer can carry app. 50.000 events now,
b72ddf0f4f552dd53d6404b6ddbc9f17d02b8e12Kay Sieverslet's see who can break this again. :)
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart PoetteringThe upcoming kernel will have a new input driver core integration.
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart PoetteringSome class devices are now symlinks to the real device. libsysfs
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poetteringneeds a fix for this to work correctly. Udevstart of older udev
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poetteringversions will _not_ create these devices!
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart PoetteringFix a 'install' target in the Makefile, that prevents EXTRAS from
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poetteringbeeing installed.
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart PoetteringA bunch of mostly trivial bugfixes. From now on no node name or
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poetteringsymlink name can contain any character than plain whitelisted ascii
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poetteringcharacters or validated utf8 byte-streams. This is needed for the
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering/dev/disk/by-label/* links, because we import untrusted data and
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poetteringexport it to the filesystem.
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart PoetteringMore bugfixes. If udevd was started from the kernel, we don't
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poetteringhave stdin/stdout/stderr, which broke the forked tools in some
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart PoetteringBugfix. udevstart event ordering was broken for a long time.
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart PoetteringThe new run_program() uncovered it, because /dev/null was not
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poetteringavailable while we try to run external programs.
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart PoetteringNow udevstart should create it before we run anything.
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart PoetteringMinor bugfixes and some distro rules updates. If you don't have the
daa05349dfefb12638c96e034c11be613bdc39b7Ansgar Burchardtpersistent disk rules in /dev/disk/by-*/* on your distro, just
daa05349dfefb12638c96e034c11be613bdc39b7Ansgar Burchardtgrab it from here. :)
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart PoetteringWe can use socket communication now to pass events from udev to
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering RUN+="socket:/org/freedesktop/hal/udev_event"
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poetteringwill pass the whole udev event to the HAL daemon without the need
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poetteringfor a forked helper. (See ChangeLog for udevmonitor, as an example)
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart PoetteringMostly bugfixes and see ChangeLog.
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart PoetteringThe test for the existence of an environment value should be
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering ENV{KEY}=="*" to ENV{KEY}=="?*"
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poetteringbecause "*" will not fail anymore, if the key does not exist or
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart PoetteringBugfixes and a few tweaks described in the ChangeLog.
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart PoetteringMostly a Bugfix release.
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart PoetteringAdded WAIT_FOR_SYSFS="<attribute>" to be able to fight against the sysfs
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poetteringtiming with custom rules.
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart PoetteringWe changed the internal rule storage format. Our large rule files took
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering2 MB of RAM, with the change we are down to 99kB.
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart PoetteringIf the device-node has been created with default name and no symlink or
a1a4a25e7f6b515d0c8c25257714299853f261aaDaniel Mackoptions are to remenber, it is not longer stored in the udevdb. HAL will
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poetteringneed to be updated to work correctly with that change.
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart PoetteringTo overrride optimization flags, OPTFLAGS may be used now.
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart PoetteringBugfix release.
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart PoetteringMajor changes happened with this release. The goal is to take over the
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poetteringcomplete kernel-event handling and provide a more efficient way to dispatch
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poetteringkernel events. Replacing most of the current shell script logic and the
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poetteringkernel forked helper with a netlink-daemon and a rule-based event handling.
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poetteringo udevd listens to netlink events now. The first valid netlink event
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering will make udevd ignore any message from udevsend that contains a
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering SEQNUM, to avoid duplicate events. The forked events can be disabled
01da80b1aa0e21f8785d467afc295e37fd00ffa1Lennart Poettering For full support, the broken input-subsytem needs to be fixed, not to
01da80b1aa0e21f8785d467afc295e37fd00ffa1Lennart Poettering bypass the driver core.
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poetteringo /etc/dev.d/ + /etc/hotplug.d/ directory multiplexing is completely
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering removed from udev itself and must be emulated by calling small
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering helper binaries provided in the extras folder:
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering will build udev_run_devd and udev_run_hotplugd, which can be called
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering from a rule if needed:
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering The recommended way to handle this is to convert all the calls from
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering the directories to explicit udev rules and get completely rid of the
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering multiplexing. (To catch a ttyUSB event, you now no longer need to
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering fork and exit 300 tty script instances you are not interested in, it
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering is just one rule that matches exactly the device.)
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poetteringo udev handles now _all_ events not just events for class and block
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering devices, this way it is possible to control the complete event
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering behavior with udev rules. Especially useful for rules like:
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering ACTION="add", DEVPATH="/devices/*", MODALIAS=="?*", RUN+="/sbin/modprobe $modalias"
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poetteringo As used in the modalias rule, udev supports now textual
265684034fac5f2674723ab7ace55b2485a1b29fTom Gundersen substitution placeholder along with the usual format chars. This
265684034fac5f2674723ab7ace55b2485a1b29fTom Gundersen needs to be documented, for now it's only visible in udev_rules_parse.c.
265684034fac5f2674723ab7ace55b2485a1b29fTom Gunderseno The rule keys support now more operations. This is documented in the
265684034fac5f2674723ab7ace55b2485a1b29fTom Gundersen man page. It is possible to add values to list-keys like the SYMLINK
265684034fac5f2674723ab7ace55b2485a1b29fTom Gundersen and RUN list with KEY+="value" and to clear the list by assigning KEY="".
265684034fac5f2674723ab7ace55b2485a1b29fTom Gundersen Also "final"-assignments are supported by using KEY:="value", which will
265684034fac5f2674723ab7ace55b2485a1b29fTom Gundersen prevent changing the key by any later rule.
265684034fac5f2674723ab7ace55b2485a1b29fTom Gunderseno kernel 2.6.12 has the "detached_state" attribute removed from
265684034fac5f2674723ab7ace55b2485a1b29fTom Gundersen sysfs, which was used to recognize sysfs population. We switched that
265684034fac5f2674723ab7ace55b2485a1b29fTom Gundersen to wait for the "bus" link, which is only available in kernels after 2.6.11.
265684034fac5f2674723ab7ace55b2485a1b29fTom Gundersen Running this udev version on older kernels may cause a short delay for
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poetteringo To provide infrastructure for persistent device naming, the id programs:
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering scsi_id, vol_id (former udev_volume_id), and ata_id (new) are able now
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering to export the probed data in environment key format:
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering ID_MODEL=HTS726060M9AT00
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering ID_SERIAL=MRH401M4G6UM9B
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering ID_REVISION=MH4OA6BA
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering The following rules:
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering KERNEL="hd*[!0-9]", IMPORT="/sbin/ata_id --export $tempnode"
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering KERNEL="hd*[!0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_MODEL}_$env{ID_SERIAL}"
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering | |-- HTS726060M9AT00_MRH401M4G6UM9B -> ../../hda
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering | `-- IBM-Memory_Key -> ../../sda
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering | |-- swap -> ../../hda1
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering | |-- date -> ../../sda1
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering | `-- home -> ../../hda3
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering |-- 2E08712B0870F2E7 -> ../../hda3
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering |-- 9352cfef-7687-47bc-a2a3-34cf136f72e1 -> ../../hda1
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering |-- E845-7A89 -> ../../sda1
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering `-- b2a61681-3812-4f13-a4ff-920d70604299 -> ../../hda2
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering The IMPORT= operation will import these keys in the environment and make
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering it available for later PROGRAM= and RUN= executed programs. The keys are
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering also stored in the udevdb and can be queried from there with one of the
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering next udev versions.
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poetteringo A few binaries are silently added to the repository, which can be used
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering to replay kernel events from initramfs instead of using coldplug. udevd
a1a4a25e7f6b515d0c8c25257714299853f261aaDaniel Mack can be instructed now to queue-up events while the stored events from
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering initramfs are filled into the udevd-queue. This code is still under
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering development and there is no documentation now besides the code itself.
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poettering The additional binaries get compiled, but are not installed by default.
01da80b1aa0e21f8785d467afc295e37fd00ffa1Lennart Poetteringo There is also a temporary fix for a performance problem where too many
01da80b1aa0e21f8785d467afc295e37fd00ffa1Lennart Poettering events happen in parallel and every event needs to parse the rules.
01da80b1aa0e21f8785d467afc295e37fd00ffa1Lennart Poettering udev can now read precompiled rules stored on disk. This is likely to be
01da80b1aa0e21f8785d467afc295e37fd00ffa1Lennart Poettering replaced by a more elegant solution in a future udev version.
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart PoetteringWith kernel version 2.6.12, the sysfs file "detached_state" was removed.
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart PoetteringFix for libsysfs not to expect this file was added.
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart PoetteringAll rules are applied now, but only the first matching rule with a NAME-key
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poetteringwill be applied. All later rules with NAME-key are completely ignored. This
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poetteringway system supplied symlinks or permissions gets applied to user-defined
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart PoetteringPlease check your rules setup, if you may need to add OPTIONS="last_rule"
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poetteringto some rules, to keep the old behavior.
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart PoetteringThe rules are read on "remove"-events too. That makes is possible to match
b2ca0d63277b10c9382d5bcfcdf320dbb712511bLennart Poetteringwith keys that are available on remove (KERNEL, SUBSYSTEM, ID, ENV, ...) to
b72ddf0f4f552dd53d6404b6ddbc9f17d02b8e12Kay Sieversinstruct udev to ignore an event (OPTIONS="ignore_device").
3dff3e00e044e2d53c76fa842b9a4759d4a50e69Kay SieversThe new ACTION-key may be used to let a rule act only at a "remove"-event.
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart PoetteringThe new RUN-key supports rule-based execution of programs after device-node
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart Poetteringhandling. This is meant as a general replacement for the dev.d/-directories
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart Poetteringto give fine grained control over the execution of programs.
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart PoetteringThe %s{}-sysfs format char replacement values are searched at any of the
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart Poetteringdevices in the device chain now, not only at the class-device.
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart PoetteringWe support log priority levels now. The value udev_log in udev.conf is used
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart Poetteringto determine what is printed to syslog. This makes it possible to
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart Poetteringrun a version with compiled-in debug messages in a production environment
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart Poetteringwhich is sometimes needed to find a bug.
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart PoetteringIt is still possible to supress the inclusion of _any_ syslog usage with
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart PoetteringUSE_LOG=false to create the smallest possible binaries if needed.
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart PoetteringThe configured udev_log value can be overridden with the environment variable
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart PoetteringPossible use of a system-wide klibc:
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart Poettering make USE_KLIBC=true KLCC=/usr/bin/klcc all
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart Poetteringwill link against an external klibc and our own version will be ignored.
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart PoetteringWe support an unlimited count of symlinks now.
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart PoetteringIf USE_STATIC=true is passed to a glibc build, we link statically and use
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart Poetteringa built-in userdb parser to resolve user and group names.
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart PoetteringThe PLACE= key is gone. It can be replaced by an ID= for a long time, because
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart Poetteringwe walk up the chain of physical devices to find a match.
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart PoetteringThe KEY="<value>" format supports '=', '==', '!=,' , '+=' now. This makes it
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart Poetteringeasy to skip certain attribute matches without composing rules with weird
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart Poetteringcharacter class negations like:
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart Poettering KERNEL="[!s][!c][!d]*"
ce1dde29b92d1399ce502e0f7db790a99d14841fThomas Hindoe Paaboel Andersenthis can now be replaced with:
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart Poettering KERNEL!="scd*"
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart PoetteringThe current simple '=' is still supported, and should work as it does today,
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart Poetteringbut existing rules should be converted if possible, to be better readable.
24a2bf4c9b0917231dd4f9b4289eabd46c382d3fLennart PoetteringWe have new ENV{}== key now, to match against a maximum of 5 environment
3dff3e00e044e2d53c76fa842b9a4759d4a50e69Kay Sieversudevstart is its own binary again, because we don't need co carry this araound
3dff3e00e044e2d53c76fa842b9a4759d4a50e69Kay Sieverswith every forked event.