NEWS revision d41b956e7f31b2ad708c1cce86eae9e9ba365a6c
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringMore libudev work. Most of udevadm's functionality comes from libudev
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringudevadm trigger has a new option --type, which allows to trigger events
8b7d0494a3fe35209d4db0d1b9e065e7e5cc9875Jason St. Johnfor "devices", for "subsystems" and "failed" devices. The old option
8b7d0494a3fe35209d4db0d1b9e065e7e5cc9875Jason St. John--retry-failed" still works, but is no longer mentioned in the man page.
4670e9d5f23fc39360c086fb58eadf8b157ee205Jan EngelhardtThe udevadm info --device-id-of-file= output has changed to use
1e190502e78cea1f8bcb62e6d390305c89e41e6aZbigniew Jędrzejewski-Szmekthe obvious format. Possible current users should use the --export
1e190502e78cea1f8bcb62e6d390305c89e41e6aZbigniew Jędrzejewski-Szmekoption which is not affected.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringThe old udev commands symlinks to udevadm are not installed, if
4c2413bffa7861bd3c4b3589c821ab7e0ac51c83Jan Engelhardtthese symlinks are used, a warning is printed.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringOptical drive's media is no longer probed for raid signatures,
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringreading the end of the device causes some devices to malfunction.
8b7d0494a3fe35209d4db0d1b9e065e7e5cc9875Jason St. JohnAlso the offset of the last session found is used now to probe
8b7d0494a3fe35209d4db0d1b9e065e7e5cc9875Jason St. Johnfor the filesystem.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringThe volume_id library got a major version number update to 1,
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringsome deprecated functions are removed.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringA shared library "libudev" gets installed now to provide access
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringto udev device information. DeviceKit, the successor of HAL, will
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringneed this library to access the udev database and search sysfs for
8b7d0494a3fe35209d4db0d1b9e065e7e5cc9875Jason St. JohnThe library is currently in an experimental state, also the API is
4c2413bffa7861bd3c4b3589c821ab7e0ac51c83Jan Engelhardtexpected to change, as long as the DeviceKit integration is not
4c2413bffa7861bd3c4b3589c821ab7e0ac51c83Jan EngelhardtWe use ./configure now. See INSTALL for details. Current
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poettering "/usr" - prefix for man pages, include files
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poettering --exec-prefix=
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poettering "" - the root filesystem, prefix for libs and binaries
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poettering --with-libdir-name=
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poettering "lib" - directory name for libraries, not a path name
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poettering multilib 64bit systems may use "lib64" instead of "lib"
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poettering --enable-debug
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poettering compile-in verbose debug messages
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poettering --disable-logging
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poettering disable all logging and compile-out all log strings
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poettering --with-selinux
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poettering link against SELInux libraries, to set the expected context
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poettering for created files
8b7d0494a3fe35209d4db0d1b9e065e7e5cc9875Jason St. JohnIn the default rules, the group "disk" gets permissions 0660 instead
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringof 0640. One small step closer to unify distro rules. Some day, all
1e190502e78cea1f8bcb62e6d390305c89e41e6aZbigniew Jędrzejewski-Szmekdistros hopefully end up with the same set of rules.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringNo symlinks to udevadm are installed anymore, if they are still needed,
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringthey should be provided by the package.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringDefault udev rules, which are not supposed to be edited by the user, should
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringbe placed in /lib/udev/rules.d/ now, to make it clear that they are private to
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringthe udev package and will be replaced with an update. Udev will pick up rule
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poettering /lib/udev/rules.d/ - default installed rules
b97610038a122ff30e60b1996369ca4b979d8b19Kay Sievers /etc/udev/rules.d/ - user rules + on-the-fly generated rules
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poettering /dev/.udev/rules.d/ - temporary non-persistent rules created after bootup
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringIt does not matter in which directory a rule file lives, all files are sorted
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringin lexical order.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringTo help creating /dev/root, we have now:
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poettering $ udevadm info --export --export-prefix="ROOT_" --device-id-of-file=/
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringIn case the current --device-id-of-file is already used, please switch to
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringthe --export format version, it saves the output parsing and the old
4c2413bffa7861bd3c4b3589c821ab7e0ac51c83Jan Engelhardtformat will be changed to use ':' as a separator, like the format in the
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringsysfs 'dev' file.
8b7d0494a3fe35209d4db0d1b9e065e7e5cc9875Jason St. JohnFix cdrom_id to properly recognize blank media.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringTape drive id-data is queried from /dev/bsg/* instead of the tape
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringnodes. This avoids rewinding tapes on open().
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringThe symlinks udevcontrol and udevtrigger are no longer installed by
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringThe scsi_id program does not depend on sysfs anymore. It can speak
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringSGv4 now, so /dev/bsg/* device nodes can be used, to query SCSI device
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringdata, which should solve some old problems with tape devices, where
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringwe better do not open all tape device nodes to identify the device.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringThe cdrom_id program is replaced by an advanced version, which can
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringdetect most common device types, and also properties of the inserted
8e420494bc59d8b9d43e6d34d8ec8bb765946c74Lennart Poetteringmedia. This is part of moving some basic functionality from HAL into
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringudev (and the kernel).
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringThe last WAIT_FOR_SYSFS rule is removed from the default rules.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringThe symlinks to udevadm for the debugging tools: udevmonitor and
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringudevtest are no longer created.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringThe symlinks to the udevadm man page for the old tool names are
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringno longer created.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringAbstract namespace sockets paths in RUN+="socket:@<path>" rules,
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringshould be prefixed with '@' to indicate that the path is not a
8e420494bc59d8b9d43e6d34d8ec8bb765946c74Lennart PoetteringUdevstart is removed from the tree, it did not get installed for
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringa long time now, and is long replaced by trigger and settle.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringAll udev tools are merged into a single binary called udevadm.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringThe old names of the tools are built-in commands in udevadm now.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringSymlinks to udevadm, with the names of the old tools, provide
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringthe same functionality as the standalone tools. There is also
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringonly a single udevadm.8 man page left for all tools.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringTools like mkinitramfs should be checked, if they need to include
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringudevadm in the list of files.
1e190502e78cea1f8bcb62e6d390305c89e41e6aZbigniew Jędrzejewski-SzmekThe etc/udev/rules.d/ directory now contains a default set of basic
1e190502e78cea1f8bcb62e6d390305c89e41e6aZbigniew Jędrzejewski-Szmekudev rules. This initial version is the result of a rules file merge
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringof Fedora and openSUSE. For these both distros only a few specific
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringrules are left in their own file, named after the distro. Rules which
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringare optionally installed, because they are only valid for a specific
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringarchitecture, or rules for subsystems which are not always used are
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringDynamic rules can be created in /dev/.udev/rules.d/ to trigger
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringactions by dynamically created rules.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringSYMLINK=="<value>" matches agains the entries in the list of
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringcurrently defined symlinks. The links are not created in the
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringfilesystem at that point in time, but the values can be matched.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringRUN{ignore_error}+="<program>" will ignore any exit code from the
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringprogram and not record as a failed event.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringFinal merge of patches/features from the Ubuntu package.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringControl characters in filesystem label strings are no longer silenty
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringremoved, but hex-encoded, to be able to uniquely identify the device
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringby its symlink in /dev/disk/by-label/.
4c2413bffa7861bd3c4b3589c821ab7e0ac51c83Jan EngelhardtIf libvolume_id is used by mount(8), LABEL= will work as expected,
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringif slashes or other characters are used in the label string.
1e190502e78cea1f8bcb62e6d390305c89e41e6aZbigniew Jędrzejewski-SzmekTo test the existence of a file, TEST=="<file>" and TEST!="<file>"
1e190502e78cea1f8bcb62e6d390305c89e41e6aZbigniew Jędrzejewski-Szmekcan be specified now. The TEST key accepts an optional mode mask
1e190502e78cea1f8bcb62e6d390305c89e41e6aZbigniew Jędrzejewski-SzmekTEST{0100}=="<is executable file>".
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringScsi_id now supports a mode without expecting scsi-specific sysfs
c0c5af00bec95567435bdfb818c69b2b669adfedDaniel Buchentries to allow the extraction of cciss-device persistent properties.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringIn the future, we may see uuid's which are just simple character
8b7d0494a3fe35209d4db0d1b9e065e7e5cc9875Jason St. Johnstrings (see the DDF Raid Specification). For that reason vol_id now
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringexports ID_FS_UUID_SAFE, just like ID_FS_LABEL_SAFE. For things like
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringthe creation of symlinks, the *_SAFE values ensure, that no control
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringor whitespace characters are used in the filename.
4c2413bffa7861bd3c4b3589c821ab7e0ac51c83Jan EngelhardtPossible users of libvolume_id, please use the volume_id_get_* functions.
8b7d0494a3fe35209d4db0d1b9e065e7e5cc9875Jason St. JohnThe public struct will go away in a future release of the library.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringRemoval of useless extras/eventrecorder.sh.
8b7d0494a3fe35209d4db0d1b9e065e7e5cc9875Jason St. JohnThe directory multiplexer for dev.d/ and hotplug.d are finally removed
4c2413bffa7861bd3c4b3589c821ab7e0ac51c83Jan Engelhardtfrom the udev package.
8b7d0494a3fe35209d4db0d1b9e065e7e5cc9875Jason St. JohnSymlinks can have priorities now, the priority is assigned to the device
8b7d0494a3fe35209d4db0d1b9e065e7e5cc9875Jason St. Johnand specified with OPTIONS="link_priority=100". Devices with higher
8b7d0494a3fe35209d4db0d1b9e065e7e5cc9875Jason St. Johnpriorities overwrite the symlinks of devices with lower priorities.
4c2413bffa7861bd3c4b3589c821ab7e0ac51c83Jan EngelhardtIf the device that currently owns the link, goes away, the symlink
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringwill be removed, and recreated, pointing to the next device with the
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringhighest actual priority. This should make /dev/disk/by-{label,uuid,id}
4c2413bffa7861bd3c4b3589c821ab7e0ac51c83Jan Engelhardtmore reliable, if multiple devices contain the same metadata and overwrite
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringthese symlinks.
ad42cf7308c45fb8a77c15b313f45361c5ea8fb5Kay SieversThe dasd_id program is removed from the udev tree, and dasdinfo, with the
ad42cf7308c45fb8a77c15b313f45361c5ea8fb5Kay Sieversneeded rules, are part of the s390-tools now.
8b7d0494a3fe35209d4db0d1b9e065e7e5cc9875Jason St. JohnPlease add KERNEL=="[0-9]*:[0-9]*" to the scsi wait-for-sysfs rule,
4c2413bffa7861bd3c4b3589c821ab7e0ac51c83Jan Engelhardtwe may get the scsi sysfs mess fixed some day, and this will only catch
4c2413bffa7861bd3c4b3589c821ab7e0ac51c83Jan Engelhardtthe devices we are looking for.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringUSB serial numbers for storage devices have the target:lun now appended,
8b7d0494a3fe35209d4db0d1b9e065e7e5cc9875Jason St. Johnto make it possibble to distinguish broken multi-lun devices with all
ad42cf7308c45fb8a77c15b313f45361c5ea8fb5Kay Sieversthe same SCSI identifiers.
ad42cf7308c45fb8a77c15b313f45361c5ea8fb5Kay SieversNote: The extra "run_directory" which searches and executes stuff in
8b7d0494a3fe35209d4db0d1b9e065e7e5cc9875Jason St. John/etc/hotplug.d/ and /etc/dev.d/ is long deprecated, and will be removed
ad42cf7308c45fb8a77c15b313f45361c5ea8fb5Kay Sieverswith the next release. Make sure, that you don't use it anymore, or
ad42cf7308c45fb8a77c15b313f45361c5ea8fb5Kay Sieversprovides your own implementation of that inefficient stuff.
ad42cf7308c45fb8a77c15b313f45361c5ea8fb5Kay SieversWe are tired of reports about a "slow udev", because these directories
ad42cf7308c45fb8a77c15b313f45361c5ea8fb5Kay Sieverscontain stuff, that runs with _every_ event, instead of using rules,
ad42cf7308c45fb8a77c15b313f45361c5ea8fb5Kay Sieversthat run programs only for the matching events.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringDRIVER== will match only for devices that actually have a real
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringdriver. DRIVERS== must be used, if parent devices should be
4c2413bffa7861bd3c4b3589c821ab7e0ac51c83Jan Engelhardtincluded in the match.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringLibvolume_id's "linux_raid" detection needed another fix.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringAdd additional check to volume_id detection of via_raid, cause
1e190502e78cea1f8bcb62e6d390305c89e41e6aZbigniew Jędrzejewski-Szmeksome company decided to put a matching pattern all over the empty
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringstorage area of their music players.
1e190502e78cea1f8bcb62e6d390305c89e41e6aZbigniew Jędrzejewski-SzmekFix path_id for SAS devices.
1e190502e78cea1f8bcb62e6d390305c89e41e6aZbigniew Jędrzejewski-SzmekThe udev daemon can be started with --debug-trace now, which will
1e190502e78cea1f8bcb62e6d390305c89e41e6aZbigniew Jędrzejewski-Szmekexecute all events serialized to get a chance to catch a possible
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringaction that crashes the box.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringA warning is logged, if PHYSDEV* keys, the "device" link, or a parent
8e420494bc59d8b9d43e6d34d8ec8bb765946c74Lennart Poetteringdevice attribute like $attr{../file} is used, only WAIT_FOR_SYSFS rules
1e190502e78cea1f8bcb62e6d390305c89e41e6aZbigniew Jędrzejewski-Szmekare excluded from the warning. Referencing parent attributes directly
1e190502e78cea1f8bcb62e6d390305c89e41e6aZbigniew Jędrzejewski-Szmekmay break when something in the kernel driver model changes. Udev will
1e190502e78cea1f8bcb62e6d390305c89e41e6aZbigniew Jędrzejewski-Szmekjust find the attribute by walking up the parent chain.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringUdevtrigger now sorts the list of devices depending on the device
8b7d0494a3fe35209d4db0d1b9e065e7e5cc9875Jason St. Johndependency, so a "usb" device is triggered after the parent "pci"
4c2413bffa7861bd3c4b3589c821ab7e0ac51c83Jan EngelhardtRevert persistent-storage ata-serial '_' '-' replacement.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringUdevtrigger can now filter the list of devices to be triggered. Matches
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringfor subsystems or sysfs attributes can be specified.
1e190502e78cea1f8bcb62e6d390305c89e41e6aZbigniew Jędrzejewski-SzmekThe entries in /dev/.udev/queue and /dev/.udev/failed have changed to
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringzero-sized files to avoid pointing to /sys and confuse broken tools which
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringscan the /dev directory. To retry failed events, udevtrigger --retry-failed
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringshould be used now.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringThe rules and scripts to create udev rules for persistent network
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringdevices and optical drives are in the extras/rules_generator directory
8b7d0494a3fe35209d4db0d1b9e065e7e5cc9875Jason St. Johnnow. If you use something similar, please consider replacing your own
1e190502e78cea1f8bcb62e6d390305c89e41e6aZbigniew Jędrzejewski-Szmekversion with this, to share the support effort. The rule_generator
1e190502e78cea1f8bcb62e6d390305c89e41e6aZbigniew Jędrzejewski-Szmekinstalls its own rules into /etc/udev/rules.d.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringThe cdrom_id tool installs its own rule now in /etc/udev/rules.d, cause
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringthe rule_generator depends on cdrom_id to be called in an earlier rule.
b97610038a122ff30e60b1996369ca4b979d8b19Kay SieversRenaming of some key names (the old names still work):
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringBUS -> SUBSYSTEMS, ID -> KERNELS, SYSFS -> ATTRS, DRIVER -> DRIVERS.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poettering(The behavior of the key DRIVER will change soon in one of the next
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringreleases, to match only the event device, please switch to DRIVERS
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringinstead. If DRIVER is used, it will behave like DRIVERS, but an error
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringWith the new key names, we have a more consistent and simpler scheme.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringWe can match the properties of the event device only, with: KERNEL,
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringSUBSYSTEM, ATTR, DRIVER. Or include all the parent devices in the match,
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringwith: KERNELS, SUBSYSTEMS, ATTRS, DRIVERS. ID, BUS, SYSFS, DRIVER are no
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringlonger mentioned in the man page and should be switched in the rule
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringATTR{file}="value" can be used now, to write to a sysfs file of the
1e190502e78cea1f8bcb62e6d390305c89e41e6aZbigniew Jędrzejewski-Szmekevent device. Instead of:
8e420494bc59d8b9d43e6d34d8ec8bb765946c74Lennart Poettering ..., SYSFS{type}=="0|7|14", RUN+="/bin/sh -c 'echo 60 > /sys$$DEVPATH/timeout'"
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poettering ..., ATTR{type}=="0|7|14", ATTR{timeout}="60"
8b7d0494a3fe35209d4db0d1b9e065e7e5cc9875Jason St. JohnAll the PHYSDEV* keys are deprecated and will be removed from a
1e190502e78cea1f8bcb62e6d390305c89e41e6aZbigniew Jędrzejewski-Szmek PHYDEVPATH - is the path of a parent device and should not be
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poettering needed at all.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poettering PHYSDEVBUS - is just a SUBSYSTEM value of a parent, and can be
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poettering matched with SUBSYSTEMS==
4c2413bffa7861bd3c4b3589c821ab7e0ac51c83Jan Engelhardt PHYSDEVDRIVER - for bus devices it is available as ENV{DRIVER}.
8b7d0494a3fe35209d4db0d1b9e065e7e5cc9875Jason St. John Newer kernels will have DRIVER in the environment,
8b7d0494a3fe35209d4db0d1b9e065e7e5cc9875Jason St. John for older kernels udev puts in. Class device will
8b7d0494a3fe35209d4db0d1b9e065e7e5cc9875Jason St. John no longer carry this property of a parent and
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poettering DRIVERS== can be used to match such a parent value.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringNote that ENV{DRIVER} is only available for a few bus devices, where
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringthe driver is already bound at device event time. On coldplug, the
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringevents for a lot devices are already bound to a driver, and they will have
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringthat value set. But on hotplug, at the time the kernel creates the device,
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringit can't know what driver may claim the device after that, therefore
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringin most cases it will be empty.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringFailed events should now be re-triggered with:
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poettering udevtrigger --retry-failed.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringPlease switch to this command, so we keep the details of the /dev/.udev/failed/
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringfiles private to the udev tools. We may need to switch the current symlink
8b7d0494a3fe35209d4db0d1b9e065e7e5cc9875Jason St. Johntarget, cause some obviously broken tools try to scan all files in /dev
8b7d0494a3fe35209d4db0d1b9e065e7e5cc9875Jason St. Johnincluding /dev/.udev/, find the links to /sys and end up stat()'ing sysfs files
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringmillion times. This takes ages on slow boxes.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringThe udevinfo attribute walk (-a) now works with giving a device node
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringname (-n) instead of a devpath (-p). The query now always works, also when
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringno database file was created by udev.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringThe built-in /etc/passwd /etc/group parser is removed, we always depend on
4c2413bffa7861bd3c4b3589c821ab7e0ac51c83Jan Engelhardtgetpwnam() and getgrnam() now. One of the next releases will depend on
8b7d0494a3fe35209d4db0d1b9e065e7e5cc9875Jason St. Johnfnmatch() and may use getopt_long().
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringBugfixes and small improvements.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringFix path_id for recent kernels.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poettering%e is finally gone.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringAdded support for swapping network interface names, by temporarily
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringrenaming the device and wait for the target name to become free.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringThe built-in MODALIAS key and substitution is removed.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringThe binary firmware helper is replaced by the usual simple
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringshell script. Udevsend is removed from the tree.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringBugfix release.
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart PoetteringSome more keys require the correct use of '==' and '=' depending
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringon the kind of operation beeing an assignment or a match. Rules
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringwith invalid operations are skipped and logged to syslog. Please
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringtest with udevtest if the parsing of your rules throws errors and
e49b5aada0df13c9e8fce7338ae34e075dd7ccd1Lennart Poetteringfix possibly broken rules.
cd4010b37349413db1e553e213e62e654ca28113Lennart PoetteringProvide "udevsettle" to wait for all current udev events to finish.
cd4010b37349413db1e553e213e62e654ca28113Lennart PoetteringIt also watches the current kernel netlink queue by comparing the
cd4010b37349413db1e553e213e62e654ca28113Lennart Poetteringeven sequence number to make sure that there are no current pending
cd4010b37349413db1e553e213e62e654ca28113Lennart Poetteringevents that have not already arrived in the daemon.
cd4010b37349413db1e553e213e62e654ca28113Lennart PoetteringFix rule to skip persistent rules for removable IDE devices, which
cd4010b37349413db1e553e213e62e654ca28113Lennart Poetteringalso skipped optical IDE drives.
cd4010b37349413db1e553e213e62e654ca28113Lennart PoetteringAll *_id program are installed in /lib/udev/ by default now.
cd4010b37349413db1e553e213e62e654ca28113Lennart PoetteringNo binary is stripped anymore as this should be done in the
cd4010b37349413db1e553e213e62e654ca28113Lennart Poetteringpackaging process and not at build time.
cd4010b37349413db1e553e213e62e654ca28113Lennart Poetteringlibvolume_id is provided as a shared library now and vol_id is
cd4010b37349413db1e553e213e62e654ca28113Lennart Poetteringlinked against it. Also one of the next HAL versions will require
cd4010b37349413db1e553e213e62e654ca28113Lennart Poetteringthis library, and the HAL build process will also require the
cd4010b37349413db1e553e213e62e654ca28113Lennart Poetteringheader file to be installed. The copy of the same code in HAL will
cd4010b37349413db1e553e213e62e654ca28113Lennart Poetteringbe removed to have only a single copy left on the system.
cd4010b37349413db1e553e213e62e654ca28113Lennart PoetteringAdd persistent links for SCSI tapes. The rules file is renamed
cd4010b37349413db1e553e213e62e654ca28113Lennart PoetteringCreate persistent path for usb devices. Can be used for all sorts
cd4010b37349413db1e553e213e62e654ca28113Lennart Poetteringof devices that can't be distinguished by other properties like
cd4010b37349413db1e553e213e62e654ca28113Lennart Poetteringmultiple identical keyboards and mice connected to the same box.
cd4010b37349413db1e553e213e62e654ca28113Lennart PoetteringProvide "udevtrigger" program to request events on coldplug. The
cd4010b37349413db1e553e213e62e654ca28113Lennart Poetteringshell script is much too slow with thousends of devices.
cd4010b37349413db1e553e213e62e654ca28113Lennart PoetteringFix persistent disk rules to exclude removable IDE drives.
cd4010b37349413db1e553e213e62e654ca28113Lennart PoetteringWarn if %e, $modalias or MODALIAS is used.
cd4010b37349413db1e553e213e62e654ca28113Lennart PoetteringFix queue export, which wasn't correct for subsequent add/remove
cd4010b37349413db1e553e213e62e654ca28113Lennart Poetteringevents for the same device.
cd4010b37349413db1e553e213e62e654ca28113Lennart PoetteringFix cramfs detection on big endian.
cd4010b37349413db1e553e213e62e654ca28113Lennart PoetteringMake WAIT_FOR_SYSFS usable in "normal" rules and silent if the whole
cd4010b37349413db1e553e213e62e654ca28113Lennart Poetteringdevice goes away.
cd4010b37349413db1e553e213e62e654ca28113Lennart PoetteringIf BUS== and SYSFS{}== have been used in the same rule, the sysfs
cd4010b37349413db1e553e213e62e654ca28113Lennart Poetteringattributes were only checked at the parent device that matched the
cd4010b37349413db1e553e213e62e654ca28113Lennart Poetteringby BUS requested subsystem. Fix it to also look at the device we
cd4010b37349413db1e553e213e62e654ca28113Lennart Poetteringreceived the event for.
cd4010b37349413db1e553e213e62e654ca28113Lennart PoetteringBuild variable CROSS has changed to CROSS_COMPILE to match the kernel
cd4010b37349413db1e553e213e62e654ca28113Lennart PoetteringFix a bug where NAME="" would prevent RUN from beeing executed.
cd4010b37349413db1e553e213e62e654ca28113Lennart PoetteringRUN="/bin/program" does not longer automatically add the subsystem
cd4010b37349413db1e553e213e62e654ca28113Lennart Poetteringas the first parameter. This is from the days of /sbin/hotplug
cd4010b37349413db1e553e213e62e654ca28113Lennart Poetteringwhich is dead now and it's just confusing to need to add a space at
cd4010b37349413db1e553e213e62e654ca28113Lennart Poetteringthe end of the program name to prevent this.
cd4010b37349413db1e553e213e62e654ca28113Lennart PoetteringIf you use rules that need the subsystem as the first parameter,
cd4010b37349413db1e553e213e62e654ca28113Lennart Poetteringlike the old "udev_run_hotlugd" and "udev_run_devd", add the subsystem
cd4010b37349413db1e553e213e62e654ca28113Lennart Poetteringto the key like RUN+="/bin/program $env{SUBSYSTEM}".
cd4010b37349413db1e553e213e62e654ca28113Lennart PoetteringThe udev man page has moved to udev(7) as it does not describe a command
cd4010b37349413db1e553e213e62e654ca28113Lennart Poetteringanymore. The programs udev, udevstart and udevsend are no longer installed
cd4010b37349413db1e553e213e62e654ca28113Lennart Poetteringby default and must be copied manually, if they should be installed or
cd4010b37349413db1e553e213e62e654ca28113Lennart Poetteringincluded in a package.
cd4010b37349413db1e553e213e62e654ca28113Lennart PoetteringFix a bug where "ignore_device" could run earlier collected RUN keys before
cd4010b37349413db1e553e213e62e654ca28113Lennart Poetteringthe ignore rule was applied.
cd4010b37349413db1e553e213e62e654ca28113Lennart PoetteringMore preparation for future sysfs changes. usb_id and scsi_id no longer
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringdepend on a magic order of devices in the /devices chain. Specific devices
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringshould be requested by their subsytem.
f3a165b05d117b9a9657076fed6b265eb40d5ba3Kay SieversThis will always find the scsi parent device without depending on a specific
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poettering dev = sysfs_device_get(devpath);
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poettering dev_usb = sysfs_device_get_parent_with_subsystem(dev, "scsi");
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart PoetteringThe "device" link in the current sysfs layout will be automatically
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poettering_resolved_ as a parent and in the new sysfs layout it will just _be_ the
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringparent in the devpath. If a device is requested by it's symlink, like all
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringclass devices in the new sysfs layout will look like, it gets automatically
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringresolved and substituted with the real devpath and not the symlink path.
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart PoetteringA similar logic must be applied to _all_ sysfs users, including
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringscripts, that search along parent devices in sysfs. The explicit use of
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringthe "device" link must be avoided. With the future sysfs layout all
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart PoetteringDEVPATH's will start with /devices/ and have a "subsystem" symlink poiting
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringback to the "class" or the "bus". The layout of the parent devices in
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poettering/devices is not necessarily expected to be stable across kernel releases and
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringsearching for parents by their subsystem should make sysfs users tolerant
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringfor changed parent chains.
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart PoetteringPrepare udev to work with the experimental kernel patch, that moves
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poettering/sys/class devices to /sys/devices and /sys/block to /sys/class/block.
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart PoetteringClarify BUS, ID, $id usage and fix $id behavior. This prepares for
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringmoving the class devices to /sys/devices.
f3a165b05d117b9a9657076fed6b265eb40d5ba3Kay SieversThanks again to Marco for help finding a hopefully nice compromise
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringto make %b simpler and working again.
387abf80ad40e4a6c2f4725c8eff4d66bf110d1fLennart PoetteringComplete removal of libsysfs, replaced by simple helper functions
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringwhich are much simpler and a bit faster. The udev daemon operatesentirely
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringon event parameters and does not use sysfs for simple rules anymore.
f3a165b05d117b9a9657076fed6b265eb40d5ba3Kay SieversPlease report any new bugs/problems, that may be caused by this big
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringchange. They will be fixed immediately.
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart PoetteringThe enumeration format character '%e' is deprecated and will be
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringremoved sometimes from a future udev version. It never worked correctly
f3a165b05d117b9a9657076fed6b265eb40d5ba3Kay Sieversoutside of udevstart, so we can't use it with the new parallel
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringcoldplug. A simple enumeration is as useless as the devfs naming
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringscheme, just get rid of both if you still use it.
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart PoetteringMODALIAS and $modalias is not needed and will be removed from one of
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringthe next udev versions, replace it in all rules with ENV{MODALIAS} or
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringthe sysfs "modalias" value.
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart PoetteringThanks a lot to Marco for all his help on finding and fixing bugs.
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart PoetteringLet scsi_id request libata drive serial numbers from page 0x80.
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart PoetteringRenamed etc/udev/persistent.rules to persistent-disk.rules and
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringadded /dev/disk/by-name/* for device mapper device names.
387abf80ad40e4a6c2f4725c8eff4d66bf110d1fLennart PoetteringRemoved %e from the man page. It never worked reliably outside
387abf80ad40e4a6c2f4725c8eff4d66bf110d1fLennart Poetteringof udevstart and udevstart is no longer recommended to use.
387abf80ad40e4a6c2f4725c8eff4d66bf110d1fLennart PoetteringSymlinks are now exported to the event environment. Hopefully it's no
387abf80ad40e4a6c2f4725c8eff4d66bf110d1fLennart Poetteringlonger needed to run udevinfo from an event process, like it was
04bf3c1a60d82791e0320381e9268f727708f776Kay Sieversmentioned on the hotplug list:
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poettering UDEV [1134776873.702967] add@/block/sdb
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poettering DEVLINKS=/dev/disk/by-id/usb-IBM_Memory_Key_0218B301030027E8 /dev/disk/by-path/usb-0218B301030027E8:0:0:0
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart PoetteringFix a problem if udevsend is used as the hotplug handler and tries to use
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringsyslog, which causes a "vc" event loop. 2.6.15 will make udevsend obsolete
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringand this kind of problems will hopefully go away soon.
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart PoetteringAll built-in logic to work around bad sysfs timing is removed with this
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringversion. The need to wait for sysfs files is almost fixed with a kernel
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringversion that doesn't work with this udev version anyway. Until we fix
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringthe timing of the "bus" link creation, the former integrated logic should
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringbe emulated by a rule placed before all other rules:
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poettering ACTION=="add", DEVPATH=="/devices/*", ENV{PHYSDEVBUS}=="?*", WAIT_FOR_SYSFS="bus"
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart PoetteringThe option "udev_db" does no longer exist. All udev state will be in
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poettering/$udev_root/.udev/ now, there is no longer an option to set this
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringto anything else.
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart PoetteringIf the init script or something else used this value, just depend on
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringthis hardcoded path. But remember _all_content_ of this directory is
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringstill private to udev and can change at any time.
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart PoetteringDefault location for rule sripts and helper programs is now: /lib/udev/.
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart PoetteringEverything that is not useful on the commandline should go into this
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart Poetteringdirectory. Some of the helpers in the extras folder are installed there
408f281bc7d65c86563f46e99e07efd1a1d9e03aLennart Poetteringnow. The rules need to be changed, to find the helpers there.
408f281bc7d65c86563f46e99e07efd1a1d9e03aLennart PoetteringAlso /lib/udev/devices is recommended as a directory where packages or
408f281bc7d65c86563f46e99e07efd1a1d9e03aLennart Poetteringthe user can place real device nodes, which get copied over to /dev at
408f281bc7d65c86563f46e99e07efd1a1d9e03aLennart Poetteringevery boot. This should replace the various solutions with custom config
408f281bc7d65c86563f46e99e07efd1a1d9e03aLennart PoetteringUdevsend does no longer start the udev daemon. This must be done with
408f281bc7d65c86563f46e99e07efd1a1d9e03aLennart Poetteringthe init script that prepares /dev on tmpfs and creates the initial nodes,
408f281bc7d65c86563f46e99e07efd1a1d9e03aLennart Poetteringbefore starting the daemon.
408f281bc7d65c86563f46e99e07efd1a1d9e03aLennart PoetteringSilent a too verbose error logging for the old hotplug.d/ dev.d/
408f281bc7d65c86563f46e99e07efd1a1d9e03aLennart PoetteringThe copy of klibc is removed. A systemwide installed version of klibc
408f281bc7d65c86563f46e99e07efd1a1d9e03aLennart Poetteringshould be used to build a klibc udev now.
408f281bc7d65c86563f46e99e07efd1a1d9e03aLennart PoetteringNAME="" will not create any nodes, but execute RUN keys. To completely
408f281bc7d65c86563f46e99e07efd1a1d9e03aLennart Poetteringignore an event the OPTION "ignore_device" should be used.
408f281bc7d65c86563f46e99e07efd1a1d9e03aLennart PoetteringAfter removal of the reorder queue, events with a TIMEOUT can be executed
408f281bc7d65c86563f46e99e07efd1a1d9e03aLennart Poetteringwithout any queuing now.
408f281bc7d65c86563f46e99e07efd1a1d9e03aLennart PoetteringFixed bug in udevd, if inotify is not available. We depend on netlink
251cc8194228ac86c9a7a4c75a54a94cea2095c7Lennart Poetteringuevents now, kernels without that event source will not work with that
251cc8194228ac86c9a7a4c75a54a94cea2095c7Lennart Poetteringversion of udev anymore.
251cc8194228ac86c9a7a4c75a54a94cea2095c7Lennart PoetteringThe rule parsing happens now in the daemon once at startup, all udev
251cc8194228ac86c9a7a4c75a54a94cea2095c7Lennart Poetteringevent processes inherit the already parsed rules from the daemon.
251cc8194228ac86c9a7a4c75a54a94cea2095c7Lennart PoetteringIt is shipped with SUSE10.0 and reduces heavily the system load at
251cc8194228ac86c9a7a4c75a54a94cea2095c7Lennart Poetteringstartup. The option to save precompiled rules and let the udev process
251cc8194228ac86c9a7a4c75a54a94cea2095c7Lennart Poetteringpick the them up is removed, as it's no longer needed.
251cc8194228ac86c9a7a4c75a54a94cea2095c7Lennart PoetteringKernel 2.6.15 will have symlinks at /class/input pointing to the real
251cc8194228ac86c9a7a4c75a54a94cea2095c7Lennart Poetteringdevice. Libsysfs is changed to "translate" the requested link into the
251cc8194228ac86c9a7a4c75a54a94cea2095c7Lennart Poetteringreal device path, as it would happen with the hotplug event. Otherwise
251cc8194228ac86c9a7a4c75a54a94cea2095c7Lennart Poetteringdevice removal and the udev database will not work.
251cc8194228ac86c9a7a4c75a54a94cea2095c7Lennart PoetteringUsing 'make STRIPCMD=' will leave the binaries unstripped for debugging
408f281bc7d65c86563f46e99e07efd1a1d9e03aLennart PoetteringA few improvements for vol_id, the filesytem probing code.
408f281bc7d65c86563f46e99e07efd1a1d9e03aLennart PoetteringFix a stupid typo in extras/run_directory for "make install".
408f281bc7d65c86563f46e99e07efd1a1d9e03aLennart Poetteringscsi_id creates the temporary devnode now in /dev for usage with a
251cc8194228ac86c9a7a4c75a54a94cea2095c7Lennart Poetteringnon-writable /tmp directory.
408f281bc7d65c86563f46e99e07efd1a1d9e03aLennart PoetteringThe uevent kernel socket buffer can carry app. 50.000 events now,
408f281bc7d65c86563f46e99e07efd1a1d9e03aLennart Poetteringlet's see who can break this again. :)
408f281bc7d65c86563f46e99e07efd1a1d9e03aLennart PoetteringThe upcoming kernel will have a new input driver core integration.
408f281bc7d65c86563f46e99e07efd1a1d9e03aLennart PoetteringSome class devices are now symlinks to the real device. libsysfs
408f281bc7d65c86563f46e99e07efd1a1d9e03aLennart Poetteringneeds a fix for this to work correctly. Udevstart of older udev
408f281bc7d65c86563f46e99e07efd1a1d9e03aLennart Poetteringversions will _not_ create these devices!
408f281bc7d65c86563f46e99e07efd1a1d9e03aLennart PoetteringFix a 'install' target in the Makefile, that prevents EXTRAS from
28f5c779e5513ab1301ac103471009711b0961e0Kay Sieversbeeing installed.
408f281bc7d65c86563f46e99e07efd1a1d9e03aLennart PoetteringA bunch of mostly trivial bugfixes. From now on no node name or
251cc8194228ac86c9a7a4c75a54a94cea2095c7Lennart Poetteringsymlink name can contain any character than plain whitelisted ascii
251cc8194228ac86c9a7a4c75a54a94cea2095c7Lennart Poetteringcharacters or validated utf8 byte-streams. This is needed for the
251cc8194228ac86c9a7a4c75a54a94cea2095c7Lennart Poettering/dev/disk/by-label/* links, because we import untrusted data and
251cc8194228ac86c9a7a4c75a54a94cea2095c7Lennart Poetteringexport it to the filesystem.
251cc8194228ac86c9a7a4c75a54a94cea2095c7Lennart PoetteringMore bugfixes. If udevd was started from the kernel, we don't
251cc8194228ac86c9a7a4c75a54a94cea2095c7Lennart Poetteringhave stdin/stdout/stderr, which broke the forked tools in some
251cc8194228ac86c9a7a4c75a54a94cea2095c7Lennart PoetteringBugfix. udevstart event ordering was broken for a long time.
251cc8194228ac86c9a7a4c75a54a94cea2095c7Lennart PoetteringThe new run_program() uncovered it, because /dev/null was not
251cc8194228ac86c9a7a4c75a54a94cea2095c7Lennart Poetteringavailable while we try to run external programs.
251cc8194228ac86c9a7a4c75a54a94cea2095c7Lennart PoetteringNow udevstart should create it before we run anything.
251cc8194228ac86c9a7a4c75a54a94cea2095c7Lennart PoetteringMinor bugfixes and some distro rules updates. If you don't have the
251cc8194228ac86c9a7a4c75a54a94cea2095c7Lennart Poetteringpersistent disk rules in /dev/disk/by-*/* on your distro, just
251cc8194228ac86c9a7a4c75a54a94cea2095c7Lennart Poetteringgrab it from here. :)
00aa832b948a27507c33e2157e46963852cffc85Lennart PoetteringWe can use socket communication now to pass events from udev to
00aa832b948a27507c33e2157e46963852cffc85Lennart Poetteringother programs:
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering RUN+="socket:/org/freedesktop/hal/udev_event"
00aa832b948a27507c33e2157e46963852cffc85Lennart Poetteringwill pass the whole udev event to the HAL daemon without the need
00aa832b948a27507c33e2157e46963852cffc85Lennart Poetteringfor a forked helper. (See ChangeLog for udevmonitor, as an example)
00aa832b948a27507c33e2157e46963852cffc85Lennart PoetteringMostly bugfixes and see ChangeLog.
00aa832b948a27507c33e2157e46963852cffc85Lennart PoetteringThe test for the existence of an environment value should be
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering ENV{KEY}=="*" to ENV{KEY}=="?*"
00aa832b948a27507c33e2157e46963852cffc85Lennart Poetteringbecause "*" will not fail anymore, if the key does not exist or
00aa832b948a27507c33e2157e46963852cffc85Lennart PoetteringBugfixes and a few tweaks described in the ChangeLog.
00aa832b948a27507c33e2157e46963852cffc85Lennart PoetteringMostly a Bugfix release.
00aa832b948a27507c33e2157e46963852cffc85Lennart PoetteringAdded WAIT_FOR_SYSFS="<attribute>" to be able to fight against the sysfs
00aa832b948a27507c33e2157e46963852cffc85Lennart Poetteringtiming with custom rules.
00aa832b948a27507c33e2157e46963852cffc85Lennart PoetteringWe changed the internal rule storage format. Our large rule files took
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering2 MB of RAM, with the change we are down to 99kB.
00aa832b948a27507c33e2157e46963852cffc85Lennart PoetteringIf the device-node has been created with default name and no symlink or
00aa832b948a27507c33e2157e46963852cffc85Lennart Poetteringoptions are to remenber, it is not longer stored in the udevdb. HAL will
00aa832b948a27507c33e2157e46963852cffc85Lennart Poetteringneed to be updated to work correctly with that change.
00aa832b948a27507c33e2157e46963852cffc85Lennart PoetteringTo overrride optimization flags, OPTFLAGS may be used now.
00aa832b948a27507c33e2157e46963852cffc85Lennart PoetteringBugfix release.
00aa832b948a27507c33e2157e46963852cffc85Lennart PoetteringMajor changes happened with this release. The goal is to take over the
00aa832b948a27507c33e2157e46963852cffc85Lennart Poetteringcomplete kernel-event handling and provide a more efficient way to dispatch
00aa832b948a27507c33e2157e46963852cffc85Lennart Poetteringkernel events. Replacing most of the current shell script logic and the
00aa832b948a27507c33e2157e46963852cffc85Lennart Poetteringkernel forked helper with a netlink-daemon and a rule-based event handling.
00aa832b948a27507c33e2157e46963852cffc85Lennart Poetteringo udevd listens to netlink events now. The first valid netlink event
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering will make udevd ignore any message from udevsend that contains a
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering SEQNUM, to avoid duplicate events. The forked events can be disabled
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering For full support, the broken input-subsytem needs to be fixed, not to
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering bypass the driver core.
00aa832b948a27507c33e2157e46963852cffc85Lennart Poetteringo /etc/dev.d/ + /etc/hotplug.d/ directory multiplexing is completely
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering removed from udev itself and must be emulated by calling small
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering helper binaries provided in the extras folder:
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering will build udev_run_devd and udev_run_hotplugd, which can be called
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering from a rule if needed:
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering The recommended way to handle this is to convert all the calls from
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering the directories to explicit udev rules and get completely rid of the
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering multiplexing. (To catch a ttyUSB event, you now no longer need to
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering fork and exit 300 tty script instances you are not interested in, it
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering is just one rule that matches exactly the device.)
00aa832b948a27507c33e2157e46963852cffc85Lennart Poetteringo udev handles now _all_ events not just events for class and block
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering devices, this way it is possible to control the complete event
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering behavior with udev rules. Especially useful for rules like:
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering ACTION="add", DEVPATH="/devices/*", MODALIAS=="?*", RUN+="/sbin/modprobe $modalias"
00aa832b948a27507c33e2157e46963852cffc85Lennart Poetteringo As used in the modalias rule, udev supports now textual
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering substitution placeholder along with the usual format chars. This
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering needs to be documented, for now it's only visible in udev_rules_parse.c.
00aa832b948a27507c33e2157e46963852cffc85Lennart Poetteringo The rule keys support now more operations. This is documented in the
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering man page. It is possible to add values to list-keys like the SYMLINK
1fda0ab5fc9cf7454c8da32941e433dc38ba9991Zbigniew Jędrzejewski-Szmek and RUN list with KEY+="value" and to clear the list by assigning KEY="".
1fda0ab5fc9cf7454c8da32941e433dc38ba9991Zbigniew Jędrzejewski-Szmek Also "final"-assignments are supported by using KEY:="value", which will
1fda0ab5fc9cf7454c8da32941e433dc38ba9991Zbigniew Jędrzejewski-Szmek prevent changing the key by any later rule.
00aa832b948a27507c33e2157e46963852cffc85Lennart Poetteringo kernel 2.6.12 has the "detached_state" attribute removed from
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering sysfs, which was used to recognize sysfs population. We switched that
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering to wait for the "bus" link, which is only available in kernels after 2.6.11.
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering Running this udev version on older kernels may cause a short delay for
00aa832b948a27507c33e2157e46963852cffc85Lennart Poetteringo To provide infrastructure for persistent device naming, the id programs:
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering scsi_id, vol_id (former udev_volume_id), and ata_id (new) are able now
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering to export the probed data in environment key format:
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering ID_MODEL=HTS726060M9AT00
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering ID_SERIAL=MRH401M4G6UM9B
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering ID_REVISION=MH4OA6BA
1fda0ab5fc9cf7454c8da32941e433dc38ba9991Zbigniew Jędrzejewski-Szmek The following rules:
1fda0ab5fc9cf7454c8da32941e433dc38ba9991Zbigniew Jędrzejewski-Szmek KERNEL="hd*[!0-9]", IMPORT="/sbin/ata_id --export $tempnode"
1fda0ab5fc9cf7454c8da32941e433dc38ba9991Zbigniew Jędrzejewski-Szmek KERNEL="hd*[!0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_MODEL}_$env{ID_SERIAL}"
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering kay@pim:~> tree /dev/disk
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering | |-- HTS726060M9AT00_MRH401M4G6UM9B -> ../../hda
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering | `-- IBM-Memory_Key -> ../../sda
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering | |-- swap -> ../../hda1
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering | |-- date -> ../../sda1
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering | `-- home -> ../../hda3
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering |-- 2E08712B0870F2E7 -> ../../hda3
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering |-- 9352cfef-7687-47bc-a2a3-34cf136f72e1 -> ../../hda1
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering |-- E845-7A89 -> ../../sda1
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering `-- b2a61681-3812-4f13-a4ff-920d70604299 -> ../../hda2
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering The IMPORT= operation will import these keys in the environment and make
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering it available for later PROGRAM= and RUN= executed programs. The keys are
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering also stored in the udevdb and can be queried from there with one of the
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering next udev versions.
00aa832b948a27507c33e2157e46963852cffc85Lennart Poetteringo A few binaries are silently added to the repository, which can be used
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering to replay kernel events from initramfs instead of using coldplug. udevd
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering can be instructed now to queue-up events while the stored events from
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering initramfs are filled into the udevd-queue. This code is still under
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering development and there is no documentation now besides the code itself.
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering The additional binaries get compiled, but are not installed by default.
00aa832b948a27507c33e2157e46963852cffc85Lennart Poetteringo There is also a temporary fix for a performance problem where too many
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering events happen in parallel and every event needs to parse the rules.
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering udev can now read precompiled rules stored on disk. This is likely to be
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering replaced by a more elegant solution in a future udev version.
00aa832b948a27507c33e2157e46963852cffc85Lennart PoetteringWith kernel version 2.6.12, the sysfs file "detached_state" was removed.
00aa832b948a27507c33e2157e46963852cffc85Lennart PoetteringFix for libsysfs not to expect this file was added.
606c24e3bd41207c395f24a56bcfcad791e265a5Lennart PoetteringAll rules are applied now, but only the first matching rule with a NAME-key
606c24e3bd41207c395f24a56bcfcad791e265a5Lennart Poetteringwill be applied. All later rules with NAME-key are completely ignored. This
606c24e3bd41207c395f24a56bcfcad791e265a5Lennart Poetteringway system supplied symlinks or permissions gets applied to user-defined
606c24e3bd41207c395f24a56bcfcad791e265a5Lennart PoetteringPlease check your rules setup, if you may need to add OPTIONS="last_rule"
606c24e3bd41207c395f24a56bcfcad791e265a5Lennart Poetteringto some rules, to keep the old behavior.
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart PoetteringThe rules are read on "remove"-events too. That makes is possible to match
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart Poetteringwith keys that are available on remove (KERNEL, SUBSYSTEM, ID, ENV, ...) to
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart Poetteringinstruct udev to ignore an event (OPTIONS="ignore_device").
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart PoetteringThe new ACTION-key may be used to let a rule act only at a "remove"-event.
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart PoetteringThe new RUN-key supports rule-based execution of programs after device-node
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart Poetteringhandling. This is meant as a general replacement for the dev.d/-directories
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart Poetteringto give fine grained control over the execution of programs.
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart PoetteringThe %s{}-sysfs format char replacement values are searched at any of the
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart Poetteringdevices in the device chain now, not only at the class-device.
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart PoetteringWe support log priority levels now. The value udev_log in udev.conf is used
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart Poetteringto determine what is printed to syslog. This makes it possible to
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart Poetteringrun a version with compiled-in debug messages in a production environment
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart Poetteringwhich is sometimes needed to find a bug.
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart PoetteringIt is still possible to supress the inclusion of _any_ syslog usage with
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart PoetteringUSE_LOG=false to create the smallest possible binaries if needed.
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart PoetteringThe configured udev_log value can be overridden with the environment variable
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart PoetteringPossible use of a system-wide klibc:
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart Poettering make USE_KLIBC=true KLCC=/usr/bin/klcc all
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart Poetteringwill link against an external klibc and our own version will be ignored.
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart PoetteringWe support an unlimited count of symlinks now.
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart PoetteringIf USE_STATIC=true is passed to a glibc build, we link statically and use
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart Poetteringa built-in userdb parser to resolve user and group names.
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart PoetteringThe PLACE= key is gone. It can be replaced by an ID= for a long time, because
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart Poetteringwe walk up the chain of physical devices to find a match.
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart PoetteringThe KEY="<value>" format supports '=', '==', '!=,' , '+=' now. This makes it
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart Poetteringeasy to skip certain attribute matches without composing rules with weird
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart Poetteringcharacter class negations like:
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart Poettering KERNEL="[!s][!c][!d]*"
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart Poetteringthis can now be replaced with:
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart Poettering KERNEL!="scd*"
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart PoetteringThe current simple '=' is still supported, and should work as it does today,
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart Poetteringbut existing rules should be converted if possible, to be better readable.
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart PoetteringWe have new ENV{}== key now, to match against a maximum of 5 environment
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart Poetteringudevstart is its own binary again, because we don't need co carry this araound
2f3fcf85c5fa6c9c483b31823a0efdd28914c756Lennart Poetteringwith every forked event.