]> git.ipfire.org Git - thirdparty/systemd.git/blame - NEWS
keymap: Support for microphone mute button on ThinkPad X220 et al
[thirdparty/systemd.git] / NEWS
CommitLineData
d7867b31
KS
1udev 174
2========
3Bugfixes.
4
5The path_id, usb_id, input_id tools are built-in commands now
6and the stand-alone tools do not exist anymore. For testing,
7the commands can be run with 'udevadm test-builtin <cmd>'.
8
ad667dff
KS
9udev 173
10========
11Bugfixes.
12
13The udev-acl extra is no longer enabled by default now. To enable it,
14--enable-udev_acl needs to be given at ./configure time. On systemd
15systems, the udev-acl rules prevent it from running as the functionality
16has moved to systemd.
17
a6148db0
KS
18udev 172
19========
20Bugfixes.
21
22Udev now enables kernel media-presence polling if available. Part
23of udisks optical drive tray-handling moved to cdrom_id: The tray
24is locked as soon as a media is detected to enable the receiving
25of media-eject-request events. Media-eject-request events will
26eject the media.
27
28Libudev enumerate is now able to enumerate a subtree of a given
29device.
30
31The mobile-action-modeswitch modeswitch tool was deleted. The
32functionality is provided by usb_modeswitch now.
33
7df0ed83
KS
34udev 171
35========
f4c80a52 36Bugfixes.
7df0ed83
KS
37
38The systemd service files require systemd version 28. The systemd
39socket activation make it possible now to start 'udevd' and 'udevadm
40trigger' in parallel.
41
e5fd444f
KS
42udev 170
43========
44Fix bug in control message handling, which can lead to a failing
45udevadm control --exit. Thanks to Jürg Billeter for help tracking
46it down.
47
09d38845
KS
48udev 169
49========
50Bugfixes.
51
ab7863f7 52We require at least Linux kernel 2.6.32 now. Some platforms might
f34939e7
KS
53require a later kernel that supports accept4() and similar, or
54need to backport the trivial syscall wiring to the older kernels.
ab7863f7 55
f34939e7 56The hid2hci tool moved to the bluez package and was removed.
09d38845 57
f34939e7
KS
58Many of the extras can be --enable/--disabled at ./configure
59time. The --disable-extras option was removed. Some extras have
60been disabled by default. The current options and their defaults
61can be checked with './configure --help'.
09d38845 62
a138cd07
KS
63udev 168
64========
65Bugfixes.
66
c1810751
KS
67Udev logs a warning now if /run is not writable at udevd
68startup. It will still fall back to /dev/.udev, but this is
69now considered a bug.
70
71The running udev daemon can now cleanly shut down with:
72 udevadm control --exit
73
74Udev in initramfs should clean the state of the udev database
75with: udevadm info --cleanup-db which will remove all state left
76behind from events/rules in initramfs. If initramfs uses
77--cleanup-db and device-mapper/LVM, the rules in initramfs need
78to add OPTIONS+="db_persist" for all dm devices. This will
79prevent removal of the udev database for these devices.
80
81Spawned programs by PROGRAM/IMPORT/RUN now have a hard timeout of
82120 seconds per process. If that timeout is reached the spawned
83process will be killed. The event timeout can be overwritten with
84udev rules.
85
86If systemd is used, udev gets now activated by netlink data.
87Systemd will bind the netlink socket which will buffer all data.
88If needed, such setup allows a seemless update of the udev daemon,
89where no event can be lost during a udevd update/restart.
90Packages need to make sure to: systemctl stop udev.socket udev.service
91or 'mask' udev.service during the upgrade to prevent any unwanted
92auto-spawning of udevd.
93This version of udev conflicts with systemd version below 25. The
94unchanged service files will not wirk correctly.
2181d30a 95
f22f1036
KS
96udev 167
97========
98Bugfixes.
99
4ec9c3e7
KS
100The udev runtime data moved from /dev/.udev/ to /run/udev/. The
101/run mountpoint is supposed to be a tmpfs mounted during early boot,
102available and writable to for all tools at any time during bootup,
103it replaces /var/run/, which should become a symlink some day.
e68b4c28 104
4ec9c3e7
KS
105If /run does not exist, or is not writable, udev will fall back using
106/dev/.udev/.
107
108On systemd systems with initramfs and LVM used, packagers must
109make sure, that the systemd and initramfs versions match. The initramfs
30b0fee9 110needs to create the /run mountpoint for udev to store the data, and
4ec9c3e7
KS
111mount this tmpfs to /run in the rootfs, so the that the udev database
112is preserved for the udev version started in the rootfs.
5f59fa09
KS
113
114The command 'udevadm info --convert-db' is gone. The udev daemon
115itself, at startup, converts any old database version if necessary.
116
ce440d1c
KS
117The systemd services files have been reorganized. The udev control
118socket is bound by systemd and passed to the started udev daemon.
119The udev-settle.service is no longer active by default. Services which
30b0fee9
KS
120can not handle hotplug setups properly need to actively pull it in, to
121act like a barrier. Alternatively the settle service can be unconditionally
122'systemctl'enabled, and act like a barrier for basic.target.
ce440d1c 123
4ec9c3e7
KS
124The fstab_import callout is no longer built or installed. Udev
125should not be used to mount, does not watch changes to fstab, and
126should not mirror fstab values in the udev database.
127
0e6a2e7d
KS
128udev 166
129========
130Bugfixes.
131
08527943
KS
132New and updated keymaps.
133
be9c0d57
KS
134udev 165
135========
136Bugfixes.
137
b4dd18ae
KS
138The udev database has changed, After installation of a new udev
139version, 'udevadm info --convert-db' should be called, to let the new
140udev/libudev version read the already stored data.
141
142udevadm now supports quoting of property values, and prefixing of
143key names:
144 $ udevadm info --export --export-prefix=MY_ --query=property -n sda
145 MY_MAJOR='259'
146 MY_MINOR='0'
147 MY_DEVNAME='/dev/sda'
148 MY_DEVTYPE='disk'
149 ...
150
151libudev now supports:
152 udev_device_get_is_initialized()
153 udev_enumerate_add_match_is_initialized()
154to be able to skip devices the kernel has created , but udev has
155not already handled.
156
157libudev now supports:
158 udev_device_get_usec_since_initialized()
159to retrieve the "age" of a udev device record.
160
161GUdev supports a more generic GUdevEnumerator class, udev TAG
162handling, device initialization and timestamp now.
163
164The counterpart of /sys/dev/{char,block}/$major:$minor,
165/dev/{char,block}/$major:$minor symlinks are now unconditionally
166created, even when no rule files exist.
167
f3f86e48
KS
168New and updated keymaps.
169
457c67e7
KS
170udev 164
171========
172Bugfixes.
173
9bc26156
KS
174GUdev moved from /usr to /.
175
397e0169
KS
176udev 163
177========
178Bugfixes.
179
f7b877ec
KS
180udev 162
181========
182Bugfixes.
183
e7638c03
KS
184Persistent network naming rules are disabled inside of Qemu/KVM now.
185
186New and updated keymaps.
187
188Udev gets unconditionally enabled on systemd installations now. There
189is no longer the need to to run 'systemctl enable udev.service'.
190
3f42314f
KS
191udev 161
192========
193Bugfixes.
194
db46deec
KS
195udev 160
196========
197Bugfixes.
198
cbcb846a
KS
199udev 159
200========
201Bugfixes.
202
f9b58c35
KS
203New and fixed keymaps.
204
205Install systemd service files if applicable.
206
94aa758d
KS
207udev 158
208========
209Bugfixes.
210
b93e0709
KS
211All distribution specific rules are removed from the udev source tree,
212most of them are no longer needed. The Gentoo rules which allow to support
213older kernel versions, which are not covered by the default rules anymore
214has moved to rules/misc/30-kernel-compat.rules.
215
6edb57c0
KS
216udev 157
217========
218Bugfixes.
219
0604fc0f
KS
220The option --debug-trace and the environemnt variable UDEVD_MAX_CHILDS=
221was removed from udevd.
222
873f3455 223Udevd now checks the kernel commandline for the following variables:
0604fc0f
KS
224 udev.log-priority=<syslog priority>
225 udev.children-max=<maximum number of workers>
226 udev.exec-delay=<seconds to delay the execution of RUN=>
227to help debuging coldplug setups where the loading of a kernel
228module crashes the system.
229
52934a60
KS
230The subdirectory in the source tree rules/packages has been renamed to
231rules/arch, anc contains only architecture specific rules now.
232
e925b633 233udev 156
c22b0d4a
KS
234========
235Bugfixes.
236
bf0323a3
KS
237udev 155
238========
41c69b0f
KS
239Bugfixes.
240
c2d5139b
KS
241Now the udev daemon itself, does on startup:
242 - copy the content of /lib/udev/devices to /dev
243 - create the standard symlinks like /dev/std{in,out,err},
244 /dev/core, /dev/fd, ...
245 - use static node information provided by kernel modules
246 and creates these nodes to allow module on-demand loading
247 - possibly apply permissions to all ststic nodes from udev
248 rules which are annotated to match a static node
41c69b0f 249
c2d5139b
KS
250The default mode for a device node is 0600 now to match the kernel
251created devtmpfs defaults. If GROUP= is specified and no MODE= is
252given the default will be 0660.
bf0323a3 253
c51d2f27
KS
254udev 154
255========
75cb1ac5
KS
256Bugfixes.
257
258Udev now gradually starts to pass control over the primary device nodes
259and their names to the kernel, and will in the end only manage the
260permissions of the node, and possibly create additional symlinks.
261As a first step NAME="" will be ignored, and NAME= setings with names
262other than the kernel provided name will result in a logged warning.
263Kernels that don't provide device names, or devtmpfs is not used, will
264still work as they did before, but it is strongly recommended to use
265only the same names for the primary device node as the recent kernel
266provides for all devices.
c51d2f27 267
451dd74d
KS
268udev 153
269========
1efde3bc 270Fix broken firmware loader search path.
451dd74d 271
fff82e9d
KS
272udev 152
273========
274Bugfixes.
275
c1b7f60d
KS
276"udevadm trigger" defaults to "change" events now instead of "add"
277events. The "udev boot script" might need to add "--action=add" to
278the trigger command if not already there, in case the initial coldplug
279events are expected as "add" events.
236fae6c 280
1f084fe5
KS
281The option "all_partitons" was removed from udev. This should not be
282needed for usual hardware. Udev can not safely make assumptions
f1c4a0e1 283about non-existing partition major/minor numbers, and therefore no
c1b7f60d 284longer provide this unreliable and unsafe option.
1f084fe5 285
a89d342d
KS
286The option "ignore_remove" was removed from udev. With devtmpfs
287udev passed control over device nodes to the kernel. This option
c1b7f60d 288should not be needed, or can not work as advertised. Neither
a89d342d
KS
289udev nor the kernel will remove device nodes which are copied from
290the /lib/udev/devices/ directory.
291
5c4c389b
KS
292All "add|change" matches are replaced by "!remove" in the rules and
293in the udev logic. All types of events will update possible symlinks
294and permissions, only "remove" is handled special now.
295
c1b7f60d 296The modem modeswitch extra was removed and the external usb_modeswitch
5c4c389b
KS
297program should be used instead.
298
fff82e9d
KS
299New and fixed keymaps.
300
a16b18f0
KS
301udev 151
302========
eea1fd84 303Bugfixes.
a16b18f0 304
ac9b4baa
KS
305udev 150
306========
307Bugfixes.
308
3c189886
KS
309Kernels with SYSFS_DEPRECATED=y are not supported since a while. Many users
310depend on the current sysfs layout and the information not available in the
311deprecated layout. All remaining support for the deprecated sysfs layout is
312removed now.
313
4cf3298e
KS
314udev 149
315========
316Fix for a possible endless loop in the new input_id program.
317
cdae488a
KS
318udev 148
319========
320Bugfixes.
321
322The option "ignore_device" does no longer exist. There is no way to
323ignore an event, as libudev events can not be suppressed by rules.
324It only prevented RUN keys from being executed, which results in an
325inconsistent behavior in current setups.
326
6d87ee2e
KS
327BUS=, SYSFS{}=, ID= are long deprecated and should be SUBSYSTEM(S)=,
328ATTR(S){}=, KERNEL(S)=. It will cause a warning once for every rule
329file from now on.
330
ecf61aa7
KS
331The support for the deprecated IDE devices has been removed from the
332default set of rules. Distros who still care about non-libata drivers
333need to add the rules to the compat rules file.
334
6722e19a
MP
335The ID_CLASS property on input devices has been replaced by the more accurate
336set of flags ID_INPUT_{KEYBOARD,KEY,MOUSE,TOUCHPAD,TABLET,JOYSTICK}. These are
337determined by the new "input_id" prober now. Some devices, such as touchpads,
338can have several classes. So if you previously had custom udev rules which e. g.
339checked for ENV{ID_CLASS}=="kbd", you need to replace this with
340ENV{ID_INPUT_KEYBOARD}=="?*".
341
a90221b6
KS
342udev 147
343========
344Bugfixes.
345
2ffc9cc1
KS
346To support DEVPATH strings larger than the maximum file name length, the
347private udev database format has changed. If some software still reads the
348private files in /dev/.udev/, which it shouldn't, now it's time to fix it.
349Please do not port anything to the new format again, everything in /dev/.udev
350is and always was private to udev, and may and will change any time without
351prior notice.
352
6c29f2b9
KS
353Multiple devices claiming the same names in /dev are limited to symlinks
354only now. Mixing identical symlink names and node names is not supported.
355This reduces the amount of data in the database significantly.
356
2ffc9cc1
KS
357NAME="%k" causes a warning now. It's is and always was completely superfluous.
358It will break kernel supplied DEVNAMEs and therefore it needs to be removed
359from all rules.
360
91554cf9
KS
361Most NAME= instructions got removed. Kernel 2.6.31 supplies the needed names
362if they are not the default. To support older kernels, the NAME= rules need to
363be added to the compat rules file.
364
6d837a53
KS
365Symlinks to udevadm with the old command names are no longer resolved to
366the udevadm commands.
367
de408510 368The udev-acl tool got adopted to changes in ConsoleKit. Version 0.4.1 is
bded5704
WJM
369required now.
370
bfbf65aa
KS
371The option "last_rule" does no longer exist. Its use breaks too many
372things which expect to be run from independent later rules, and is an idication
373that something needs to be fixed properly instead.
374
5448cc56 375The gudev API is no longer marked as experimental,
04da95b1
KS
376G_UDEV_API_IS_SUBJECT_TO_CHANGE is no longer needed. The gudev introspection
377is enabled by default now. Various projects already depend on introspection
378information to bind dynamic languages to the gudev interfaces.
5448cc56 379
2a827c95
KS
380udev 146
381========
f7c5b04f
KS
382Bugfixes.
383
384The udevadm trigger "--retry-failed" option, which is replaced since quite
385a while by "--type=failed" is removed.
2a827c95 386
f7c5b04f 387The failed tracking was not working at all for a few releases. The RUN
16dd0aa9 388option "ignore_error" is replaced by a "fail_event_on_error" option, and the
f7c5b04f
KS
389default is not to track any failing RUN executions.
390
391New keymaps, new modem, hid2hci updated.
2a827c95 392
804ab685
KS
393udev 145
394========
3d66c90f
KS
395Fix possible crash in udevd when worker processes are busy, rules are
396changed at the same time, and workers get killed to reload the rules.
804ab685 397
c668754b
KS
398udev 144
399========
d5f1cc16
KS
400Bugfixes.
401
d5f1cc16
KS
402Properties set with ENV{.FOO}="bar" are marked private by starting the
403name with a '.'. They will not be stored in the database, and not be
404exported with the event.
c668754b 405
15106c48
KS
406Firmware files are looked up in:
407 /lib/firmware/updates/$(uname -r)
408 /lib/firmware/updates
409 /lib/firmware/$(uname -r)
410 /lib/firmware"
411now.
412
413ATA devices switched the property from ID_BUS=scsi to ID_BUS=ata.
414ata_id, instead of scsi_id, is the default tool now for ATA devices.
415
9d5bdeb3
KS
416udev 143
417========
418Bugfixes.
419
6133f343
KS
420The configure options have changed because another library needs to be
421installed in a different location. Instead of exec_prefix and udev_prefix,
422libdir, rootlibdir and libexecdir are used. The Details are explained in
423the README file.
424
1e03b754 425Event processes now get re-used after they handled an event. This reduces
26812f0a
KS
426the number of forks and the pressure on the CPU significantly, because
427cloned event processes no longer cause page faults in the main daemon.
428After the events have settled, a few worker processes stay around for
429future events, all others get cleaned up.
1e03b754
KS
430
431To be able to use signalfd(), udev depends on kernel version 2.6.25 now.
26812f0a 432Also inotify support is mandatory now to run udev.
1e03b754 433
c406de19 434The format of the queue exported by the udev damon has changed. There is
1e03b754
KS
435no longer a /dev/.udev/queue/ directory. The current event queue can be
436accessed with udevadm settle and libudedv.
c406de19 437
20fa0fd6
KS
438Libudev does not have the unstable API header anymore. From now on,
439incompatible changes will be handled by bumping the library major version.
440
26812f0a
KS
441To build udev from the git tree gtk-doc is needed now. The tarballs will
442build without it and contain the pre-built documentation. An online copy
443is available here:
444 http://www.kernel.org/pub/linux/utils/kernel/hotplug/libudev/
445
8fac66c9 446The tools from the udev-extras repository have been merged into the main
29cf5b58
KS
447udev repository. Some of the extras have larger external dependencies, and
448they can be disabled with the configure switch --disable-extras.
449
e2151b00
KS
450udev 142
451========
452Bugfixes.
453
634ffc0c 454The program vol_id and the library libvolume_id are removed from the
3de63a35
KS
455repository. Libvolume_id is merged with libblkid from the util-linux-ng
456package. Persistent disk links for label and uuid depend on the
457util-linux-ng version (2.15) of blkid now. Older versions of blkid
458can not be used with udev.
f0799688 459
aa1aa46f
KS
460Libudev allows to subscribe to udev events. To prevent unwanted messages
461to be delivered, and waking up the subscribing process, a filter can be
462installed, to drop messages inside a kernel socket filter. The filters
463match on the <subsytem>:<devtype> properties of the device.
464 This is part of the ongoing effort to replace HAL, and switch current
634ffc0c 465users over to directly use libudev.
aa1aa46f 466 Libudev is still marked as experimental, and its interface might
634ffc0c
KS
467eventually change if needed, but no major changes of the currently exported
468interface are expected anymore, and a first stable release should happen
469soon.
aa1aa46f 470
ccc87b0e
KS
471A too old kernel (2.6.21) or a kernel with CONFIG_SYSFS_DEPRECATED
472is not supported since while and udevd will log an error message at
f0799688
KS
473startup. It should still be able to boot-up, but advanced rules and system
474services which depend on the information not available in the old sysfs
475format will fail to work correctly.
e2151b00 476
ccc87b0e
KS
477DVB device naming is supplied by the kernel now. In case older kernels
478need to be supported, the old shell script should be added to a compat
e2151b00
KS
479rules file.
480
b25d8cfa
KS
481udev 141
482========
483Bugfixes.
484
dbf4ba73
KS
485The processed udev events get send back to the netlink socket. Libudev
486provides access to these events. This is work-in-progress, to replace
487the DeviceKit daemon functionality directly with libudev. There are
488upcoming kernel changes to allow non-root users to subcribe to these
489events.
490
cb81636a
KS
491udev 140
492========
493Bugfixes.
494
3d859987
KS
495"udevadm settle" now optionally accepts a range of events to wait for,
496instead of waiting for "all" events.
497
58e49543
KS
498udev 139
499========
500Bugfixes.
501
0ee5a241
KS
502The installed watch for block device metadata changes is now removed
503during event hadling, because some (broken) tools may be called from udev
504rules and (wrongly) open the device with write access. After the finished
505event handling the watch is restored.
506
705e1c7f
KS
507udev 138
508========
e8c84c98 509Bugfixes.
705e1c7f 510
e8c84c98
KS
511Device nodes can be watched for changes with inotify with OPTIONS="watch".
512If closed after being opened for writing, a "change" uevent will occur.
513/dev/disk/by-{label,uuid}/* symlinks will be automatically updated.
f24036d6 514
87702fa0
KS
515udev 137
516========
517Bugfixes.
518
519The udevadm test command has no longer a --force option, nodes and symlinks
520are always updated with a test run now.
521
5f03ed8a 522The udevd daemon can be started with --resolve-names=never to avoid all user
9032f119
SJR
523and group lookups (e.g. in cut-down systems) or --resolve-names=late to
524lookup user and groups every time events are handled.
5f03ed8a 525
3e18fb06
KS
526udev 136
527========
528Bugfixes.
529
1aa8fdf7 530We are currently merging the Ubuntu rules in the udev default rules,
67c89548 531and get one step closer to provide a common Linux /dev setup, regarding
1aa8fdf7 532device names, symlinks, and default device permissions. On udev startup,
67c89548 533we now expect the following groups to be resolvable to their ids with
1aa8fdf7
KS
534glibc's getgrnam():
535 disk, cdrom, floppy, tape, audio, video, lp, tty, dialout, kmem.
67c89548
KS
536LDAP setups need to make sure, that these groups are always resolvable at
537bootup, with only the rootfs mounted, and without network access available.
538
539Some systems may need to add some new, currently not used groups, or need
540to add some users to new groups, but the cost of this change is minimal,
541compared to the pain the current, rather random, differences between the
542various distributions cause for upstream projects and third-party vendors.
543
544In general, "normal" users who log into a machine should never be a member
545of any such group, but the device-access should be managed by dynamic ACLs,
546which get added and removed for the specific users on login/logout and
547session activity/inactivity. These groups are only provided for custom setups,
548and mainly system services, to allow proper privilege separation.
549A video-streaming daemon uid would be a member of "audio" and "video", to get
31a73307
KS
550access to the sound and video devices, but no "normal" user should ever belong
551to the "audio" group, because he could listen to the built-in microphone with
67c89548 552any ssh-session established from the other side of the world.
8553cf06 553
d4e0db3c
KS
554/dev/serial/by-{id,path}/ now contains links for ttyUSB devices,
555which do not depend on the kernel device name. As usual, unique
556devices - only a single one per product connected, or a real
557USB serial number in the device - are always found with the same
558name in the by-id/ directory.
5fadcc76 559Completely identical devices may overwrite their names in by-id/
d4e0db3c
KS
560and can only be found reliably in the by-path/ directory. Devices
561specified by by-path/ must not change their connection, like the
562USB port number they are plugged in, to keep their name.
563
67c89548
KS
564To support some advanced features, Linux 2.6.22 is the oldest supported
565version now. The kernel config with enabled SYSFS_DEPRECATED is no longer
566supported. Older kernels should still work, and devices nodes should be
567reliably created, but some rules and libudev will not work correctly because
568the old kernels do not provide the expected information or interfaces.
569
ae0f55cb
KS
570udev 135
571========
572Bugfixes.
573
574Fix for a possible segfault while swapping network interface names in udev
575versions 131-134.
576
44993482
KS
577udev 134
578========
6733f601
KS
579Bugfixes.
580
581The group "video" is part of the default rules now.
44993482 582
fc0d4bd4
KS
583udev 133
584========
d78c0b3a
KS
585Bugfix for kernels using SYSFS_DEPRECATED* option and finding parent
586block devices in some cases. No common distro uses this option anymore,
587and we do not get enough testing for this and recent udev versions. If
588this option is not needed to run some old distro with a new kernel,
589it should be disabled in the kernel config.
590
591Bugfix for the $links substitution variable, which may crash if no links
592are created. This should not happen in usual setups because we always
593create /dev/{block,char}/ links.
fc0d4bd4
KS
594
595The strings of the parsed rules, which are kept in memory, no longer
d78c0b3a
KS
596contain duplicate entries, or duplicate tails of strings. This, and the
597new rules parsing/matching code reduces the total in-memory size of
598a huge distro rule sets to 0.08 MB, compared to the 1.2MB of udev
599version 130.
fc0d4bd4
KS
600
601The export of DEVTYPE=disk/partition got removed from the default
d78c0b3a
KS
602rules. This value is available from the kernel. The pnp shell script
603modprobe hack is removed from the default rules. ACPI devices have _proper_
604modalias support and take care of the same functionality.
fc0d4bd4 605Installations which support old kernels, but install current default
4dfe61c9 606udev rules may want to add that to the compat rules file.
fc0d4bd4 607
510af2e9 608Libvolume_id now always probes for all known filesystems, and does not
4dfe61c9
KS
609stop at the first match. Some filesystems are marked as "exclusive probe",
610and if any other filesytem type matches at the same time, libvolume_id
d78c0b3a
KS
611will, by default, not return any probing result. This is intended to prevent
612mis-detection with conflicting left-over signatures found from earlier
613file system formats. That way, we no longer depend on the probe-order
614in case of multiple competing signatures. In some setups the kernel allows
615to mount a volume with just the old filesystem signature still in place.
616This may damage the new filesystem and cause data-loss, just by mounting
617it. Because volume_id can not decide which one the correct signature is,
618the wrong signatures need to be removed manually from the volume, or the
619volume needs to be reformatted, to enable filesystem detection and possible
620auto-mounting.
510af2e9 621
bfa9938c
KS
622udev 132
623========
bfa9938c
KS
624Fix segfault if compiled without optimization and dbg() does not get
625compiled out and uses variables which are not available.
626
2d9a1b1e
KS
627udev 131
628========
acae628f 629Bugfixes. (And maybe new bugs. :))
65807d09
KS
630
631The rule matching engine got converted from a rule list to a token
632array which reduced the in-memory rules representation of a full
acae628f
KS
633featured distros with thousends of udev rules from 1.2MB to 0.12 MB.
634Limits like 5 ENV and ATTR matches, and one single instance for most
635other keys per rule are gone.
65807d09
KS
636
637The NAME assignment is no longer special cased. If later rules assign
638a NAME value again, the former value will be overwritten. As usual
639for most other keys, the NAME value can be protected by doing a final
640assignment with NAME:="<value>".
641
acae628f
KS
642All udev code now uses libudev, which is also exported. The library
643is still under development, marked as experimental, and its interface
644may change as long as the DeviceKit integration is not finished.
645
646Many thanks to Alan Jenkins for his continuous help, and finding and
647optimizing some of the computing expensive parts.
2d9a1b1e 648
22c89d3f
KS
649udev 130
650========
651Bugfixes.
652
ec06a8dd
KS
653Kernel devices and device nodes are connected now by reverse indizes in
654/sys and /dev. A device number retrieved by a stat() or similar, the
655kernel device directory can be found by looking up:
656 /sys/dev/{block,char}/<maj>:<min>
657and the device node of the same device by looking up:
658 /dev/{block,char}/<maj>:<min>
659
f5001d24
KS
660udev 129
661========
714131f1
KS
662Fix recently introduced bug, which caused a compilation without large
663file support, where vol_id does not recognize raid signatures at the end
664of a volume.
665
666Firewire disks now create both, by-id/scsi-* and by-id/ieee-* links.
667Seems some kernel versions prevent the creation of the ieee-* links,
668so people used the scsi-* link which disappeared now.
669
670More libudev work. Almost all udevadm functionality comes from libudev
f5001d24
KS
671now.
672
d41b956e 673udevadm trigger has a new option --type, which allows to trigger events
8249e04e 674for "devices", for "subsystems", or "failed" devices. The old option
d41b956e
KS
675--retry-failed" still works, but is no longer mentioned in the man page.
676
2b725651
KS
677udev 128
678========
679Bugfixes.
680
681The udevadm info --device-id-of-file= output has changed to use
682the obvious format. Possible current users should use the --export
683option which is not affected.
684
55eb845c
KS
685The old udev commands symlinks to udevadm are not installed, if
686these symlinks are used, a warning is printed.
e4255f11 687
33a5cc29
KS
688udev 127
689========
690Bugfixes.
691
41ff8053
KS
692Optical drive's media is no longer probed for raid signatures,
693reading the end of the device causes some devices to malfunction.
694Also the offset of the last session found is used now to probe
695for the filesystem.
a689165b
KS
696
697The volume_id library got a major version number update to 1,
698some deprecated functions are removed.
699
41ff8053 700A shared library "libudev" gets installed now to provide access
a689165b
KS
701to udev device information. DeviceKit, the successor of HAL, will
702need this library to access the udev database and search sysfs for
703devices.
ba6929f6 704The library is currently in an experimental state, also the API is
a689165b 705expected to change, as long as the DeviceKit integration is not
ba6929f6
KS
706finished.
707
01618658
KS
708udev 126
709========
710We use ./configure now. See INSTALL for details. Current
711options are:
712 --prefix=
713 "/usr" - prefix for man pages, include files
714 --exec-prefix=
715 "" - the root filesystem, prefix for libs and binaries
716 --sysconfdir=
717 "/etc"
718 --with-libdir-name=
719 "lib" - directory name for libraries, not a path name
720 multilib 64bit systems may use "lib64" instead of "lib"
721 --enable-debug
722 compile-in verbose debug messages
723 --disable-logging
724 disable all logging and compile-out all log strings
47b0c350 725 --with-selinux
58a63088 726 link against SELInux libraries, to set the expected context
01618658
KS
727 for created files
728
58a63088
KS
729In the default rules, the group "disk" gets permissions 0660 instead
730of 0640. One small step closer to unify distro rules. Some day, all
731distros hopefully end up with the same set of rules.
732
733No symlinks to udevadm are installed anymore, if they are still needed,
734they should be provided by the package.
01618658 735
05b96400
KS
736udev 125
737========
738Bugfixes.
739
740Default udev rules, which are not supposed to be edited by the user, should
741be placed in /lib/udev/rules.d/ now, to make it clear that they are private to
742the udev package and will be replaced with an update. Udev will pick up rule
743files from:
744 /lib/udev/rules.d/ - default installed rules
745 /etc/udev/rules.d/ - user rules + on-the-fly generated rules
746 /dev/.udev/rules.d/ - temporary non-persistent rules created after bootup
747It does not matter in which directory a rule file lives, all files are sorted
748in lexical order.
749
750To help creating /dev/root, we have now:
751 $ udevadm info --export --export-prefix="ROOT_" --device-id-of-file=/
752 ROOT_MAJOR=8
753 ROOT_MINOR=5
754In case the current --device-id-of-file is already used, please switch to
755the --export format version, it saves the output parsing and the old
756format will be changed to use ':' as a separator, like the format in the
757sysfs 'dev' file.
758
c986ca55
KS
759udev 124
760========
761Fix cdrom_id to properly recognize blank media.
762
2c0644c1
KS
763udev 123
764========
765Bugfixes.
766
767Tape drive id-data is queried from /dev/bsg/* instead of the tape
768nodes. This avoids rewinding tapes on open().
769
4e548559
KS
770udev 122
771========
772Bugfixes.
773
774The symlinks udevcontrol and udevtrigger are no longer installed by
775the Makefile.
776
777The scsi_id program does not depend on sysfs anymore. It can speak
778SGv4 now, so /dev/bsg/* device nodes can be used, to query SCSI device
779data, which should solve some old problems with tape devices, where
780we better do not open all tape device nodes to identify the device.
781
8325c84d
KS
782udev 121
783========
784Many bugfixes.
785
786The cdrom_id program is replaced by an advanced version, which can
787detect most common device types, and also properties of the inserted
788media. This is part of moving some basic functionality from HAL into
789udev (and the kernel).
790
cb0b4b70
KS
791udev 120
792========
793Bugfixes.
794
795The last WAIT_FOR_SYSFS rule is removed from the default rules.
796
797The symlinks to udevadm for the debugging tools: udevmonitor and
798udevtest are no longer created.
799
800The symlinks to the udevadm man page for the old tool names are
801no longer created.
802
803Abstract namespace sockets paths in RUN+="socket:@<path>" rules,
804should be prefixed with '@' to indicate that the path is not a
805real file.
806
65e9e8c5
KS
807udev 119
808========
809Bugfixes.
810
c645b98b
KS
811udev 118
812========
7094df0a
KS
813Bugfixes.
814
815Udevstart is removed from the tree, it did not get installed for
816a long time now, and is long replaced by trigger and settle.
c645b98b 817
225cb03b
KS
818udev 117
819========
820Bugfixes.
821
3ca49451
KS
822All udev tools are merged into a single binary called udevadm.
823The old names of the tools are built-in commands in udevadm now.
824Symlinks to udevadm, with the names of the old tools, provide
825the same functionality as the standalone tools. There is also
826only a single udevadm.8 man page left for all tools.
827
828Tools like mkinitramfs should be checked, if they need to include
829udevadm in the list of files.
225cb03b 830
8e37efe4
KS
831udev 116
832========
833Bugfixes.
834
7e599863
KS
835udev 115
836========
837Bugfixes.
838
839The etc/udev/rules.d/ directory now contains a default set of basic
840udev rules. This initial version is the result of a rules file merge
841of Fedora and openSUSE. For these both distros only a few specific
842rules are left in their own file, named after the distro. Rules which
843are optionally installed, because they are only valid for a specific
844architecture, or rules for subsystems which are not always used are
845in etc/udev/packages/.
846
585e8388
KS
847udev 114
848========
849Bugfixes.
850
851Dynamic rules can be created in /dev/.udev/rules.d/ to trigger
852actions by dynamically created rules.
853
854SYMLINK=="<value>" matches agains the entries in the list of
855currently defined symlinks. The links are not created in the
856filesystem at that point in time, but the values can be matched.
857
858RUN{ignore_error}+="<program>" will ignore any exit code from the
859program and not record as a failed event.
860
de966524
KS
861udev 113
862========
863Bugfixes.
864
865Final merge of patches/features from the Ubuntu package.
866
83a4c0f8
KS
867udev 112
868========
869Bugfixes.
870
871Control characters in filesystem label strings are no longer silenty
872removed, but hex-encoded, to be able to uniquely identify the device
873by its symlink in /dev/disk/by-label/.
874If libvolume_id is used by mount(8), LABEL= will work as expected,
875if slashes or other characters are used in the label string.
876
877To test the existence of a file, TEST=="<file>" and TEST!="<file>"
878can be specified now. The TEST key accepts an optional mode mask
879TEST{0100}=="<is executable file>".
880
881Scsi_id now supports a mode without expecting scsi-specific sysfs
882entries to allow the extraction of cciss-device persistent properties.
883
85135c74
KS
884udev 111
885========
886Bugfixes.
887
888In the future, we may see uuid's which are just simple character
889strings (see the DDF Raid Specification). For that reason vol_id now
83a4c0f8 890exports ID_FS_UUID_SAFE, just like ID_FS_LABEL_SAFE. For things like
85135c74
KS
891the creation of symlinks, the *_SAFE values ensure, that no control
892or whitespace characters are used in the filename.
893
894Possible users of libvolume_id, please use the volume_id_get_* functions.
895The public struct will go away in a future release of the library.
896
25b5bb42
KS
897udev 110
898========
899Bugfixes.
900
901Removal of useless extras/eventrecorder.sh.
902
7c1ecbfb
KS
903udev 109
904========
905Bugfixes.
906
b8eb7940
KS
907udev 108
908========
909Bugfixes.
910
911The directory multiplexer for dev.d/ and hotplug.d are finally removed
912from the udev package.
913
9d534c0e
KS
914udev 107
915========
916Bugfixes.
917
918Symlinks can have priorities now, the priority is assigned to the device
919and specified with OPTIONS="link_priority=100". Devices with higher
920priorities overwrite the symlinks of devices with lower priorities.
921If the device that currently owns the link, goes away, the symlink
922will be removed, and recreated, pointing to the next device with the
923highest actual priority. This should make /dev/disk/by-{label,uuid,id}
924more reliable, if multiple devices contain the same metadata and overwrite
925these symlinks.
926
927The dasd_id program is removed from the udev tree, and dasdinfo, with the
928needed rules, are part of the s390-tools now.
929
930Please add KERNEL=="[0-9]*:[0-9]*" to the scsi wait-for-sysfs rule,
931we may get the scsi sysfs mess fixed some day, and this will only catch
932the devices we are looking for.
933
934USB serial numbers for storage devices have the target:lun now appended,
935to make it possibble to distinguish broken multi-lun devices with all
936the same SCSI identifiers.
937
938Note: The extra "run_directory" which searches and executes stuff in
939/etc/hotplug.d/ and /etc/dev.d/ is long deprecated, and will be removed
940with the next release. Make sure, that you don't use it anymore, or
941provides your own implementation of that inefficient stuff.
942We are tired of reports about a "slow udev", because these directories
943contain stuff, that runs with _every_ event, instead of using rules,
944that run programs only for the matching events.
945
946udev 106
947========
948Bugfixes.
949
273bebdb
KS
950udev 105
951========
1bcfb137
KS
952Bugfixes.
953
954DRIVER== will match only for devices that actually have a real
955driver. DRIVERS== must be used, if parent devices should be
956included in the match.
957
958Libvolume_id's "linux_raid" detection needed another fix.
273bebdb 959
8fdad27d
KS
960udev 104
961========
962Bugfixes.
963
1810a9d7
KS
964udev 103
965========
966Add additional check to volume_id detection of via_raid, cause
967some company decided to put a matching pattern all over the empty
968storage area of their music players.
969
0a9e36df
KS
970udev 102
971========
972Fix path_id for SAS devices.
973
9b2a9038
KS
974udev 101
975========
976The udev daemon can be started with --debug-trace now, which will
977execute all events serialized to get a chance to catch a possible
978action that crashes the box.
979
980A warning is logged, if PHYSDEV* keys, the "device" link, or a parent
981device attribute like $attr{../file} is used, only WAIT_FOR_SYSFS rules
982are excluded from the warning. Referencing parent attributes directly
983may break when something in the kernel driver model changes. Udev will
984just find the attribute by walking up the parent chain.
985
986Udevtrigger now sorts the list of devices depending on the device
987dependency, so a "usb" device is triggered after the parent "pci"
988device.
989
eed8b2ff
KS
990udev 100
991========
992Revert persistent-storage ata-serial '_' '-' replacement.
993
4a515309
KS
994udev 099
995========
996Bugfixes.
997
998Udevtrigger can now filter the list of devices to be triggered. Matches
999for subsystems or sysfs attributes can be specified.
1000
1001The entries in /dev/.udev/queue and /dev/.udev/failed have changed to
1002zero-sized files to avoid pointing to /sys and confuse broken tools which
1003scan the /dev directory. To retry failed events, udevtrigger --retry-failed
1004should be used now.
1005
1006The rules and scripts to create udev rules for persistent network
1007devices and optical drives are in the extras/rules_generator directory
1008now. If you use something similar, please consider replacing your own
1009version with this, to share the support effort. The rule_generator
1010installs its own rules into /etc/udev/rules.d.
1011
1012The cdrom_id tool installs its own rule now in /etc/udev/rules.d, cause
1013the rule_generator depends on cdrom_id to be called in an earlier rule.
1014
56f914e6
KS
1015udev 098
1016========
1017Bugfixes.
1018
1019Renaming of some key names (the old names still work):
1020BUS -> SUBSYSTEMS, ID -> KERNELS, SYSFS -> ATTRS, DRIVER -> DRIVERS.
1021(The behavior of the key DRIVER will change soon in one of the next
1022releases, to match only the event device, please switch to DRIVERS
1023instead. If DRIVER is used, it will behave like DRIVERS, but an error
1024is logged.
1025With the new key names, we have a more consistent and simpler scheme.
1026We can match the properties of the event device only, with: KERNEL,
1027SUBSYSTEM, ATTR, DRIVER. Or include all the parent devices in the match,
1028with: KERNELS, SUBSYSTEMS, ATTRS, DRIVERS. ID, BUS, SYSFS, DRIVER are no
1029longer mentioned in the man page and should be switched in the rule
1030files.
1031
1032ATTR{file}="value" can be used now, to write to a sysfs file of the
1033event device. Instead of:
1034 ..., SYSFS{type}=="0|7|14", RUN+="/bin/sh -c 'echo 60 > /sys$$DEVPATH/timeout'"
1035we now can do:
1036 ..., ATTR{type}=="0|7|14", ATTR{timeout}="60"
1037
1038All the PHYSDEV* keys are deprecated and will be removed from a
1039future kernel:
1040 PHYDEVPATH - is the path of a parent device and should not be
1041 needed at all.
1042 PHYSDEVBUS - is just a SUBSYSTEM value of a parent, and can be
1043 matched with SUBSYSTEMS==
1044 PHYSDEVDRIVER - for bus devices it is available as ENV{DRIVER}.
1045 Newer kernels will have DRIVER in the environment,
1046 for older kernels udev puts in. Class device will
1047 no longer carry this property of a parent and
1048 DRIVERS== can be used to match such a parent value.
1049Note that ENV{DRIVER} is only available for a few bus devices, where
1050the driver is already bound at device event time. On coldplug, the
1051events for a lot devices are already bound to a driver, and they will have
1052that value set. But on hotplug, at the time the kernel creates the device,
1053it can't know what driver may claim the device after that, therefore
1054in most cases it will be empty.
1055
1056Failed events should now be re-triggered with:
1057 udevtrigger --retry-failed.
1058Please switch to this command, so we keep the details of the /dev/.udev/failed/
1059files private to the udev tools. We may need to switch the current symlink
1060target, cause some obviously broken tools try to scan all files in /dev
1061including /dev/.udev/, find the links to /sys and end up stat()'ing sysfs files
1062million times. This takes ages on slow boxes.
1063
1064The udevinfo attribute walk (-a) now works with giving a device node
1065name (-n) instead of a devpath (-p). The query now always works, also when
1066no database file was created by udev.
1067
1068The built-in /etc/passwd /etc/group parser is removed, we always depend on
1069getpwnam() and getgrnam() now. One of the next releases will depend on
1070fnmatch() and may use getopt_long().
1071
be31371f
KS
1072udev 097
1073========
1074Bugfixes and small improvements.
1075
8448b7ce
KS
1076udev 096
1077========
be31371f 1078Fix path_id for recent kernels.
8448b7ce 1079
486e62f8
KS
1080udev 095
1081========
56f914e6 1082%e is finally gone.
486e62f8
KS
1083
1084Added support for swapping network interface names, by temporarily
1085renaming the device and wait for the target name to become free.
1086
a924bf9a
KS
1087udev 094
1088========
1089The built-in MODALIAS key and substitution is removed.
1090
df16b779
KS
1091udev 093
1092========
1093The binary firmware helper is replaced by the usual simple
1094shell script. Udevsend is removed from the tree.
1095
acc8322f
KS
1096udev 092
1097========
1098Bugfix release.
1099
866bfe88
KS
1100udev 091
1101========
1102Some more keys require the correct use of '==' and '=' depending
1103on the kind of operation beeing an assignment or a match. Rules
1104with invalid operations are skipped and logged to syslog. Please
1105test with udevtest if the parsing of your rules throws errors and
1106fix possibly broken rules.
1107
876fa61d
KS
1108udev 090
1109========
1110Provide "udevsettle" to wait for all current udev events to finish.
1111It also watches the current kernel netlink queue by comparing the
1112even sequence number to make sure that there are no current pending
1113events that have not already arrived in the daemon.
1114
2b3f8e93
KS
1115udev 089
1116========
1117Fix rule to skip persistent rules for removable IDE devices, which
1118also skipped optical IDE drives.
1119
1120All *_id program are installed in /lib/udev/ by default now.
1121
1122No binary is stripped anymore as this should be done in the
1123packaging process and not at build time.
1124
1125libvolume_id is provided as a shared library now and vol_id is
1126linked against it. Also one of the next HAL versions will require
1127this library, and the HAL build process will also require the
1128header file to be installed. The copy of the same code in HAL will
1129be removed to have only a single copy left on the system.
1130
63645a3d
KS
1131udev 088
1132========
1133Add persistent links for SCSI tapes. The rules file is renamed
1134to 60-persistent-storage.rules.
1135
1136Create persistent path for usb devices. Can be used for all sorts
1137of devices that can't be distinguished by other properties like
1138multiple identical keyboards and mice connected to the same box.
1139
1140Provide "udevtrigger" program to request events on coldplug. The
1141shell script is much too slow with thousends of devices.
1142
b2885eee
KS
1143udev 087
1144========
1145Fix persistent disk rules to exclude removable IDE drives.
1146
1147Warn if %e, $modalias or MODALIAS is used.
1148
1149udev 086
0030441c
KS
1150========
1151Fix queue export, which wasn't correct for subsequent add/remove
1152events for the same device.
1153
4cb665e4
KS
1154udev 085
1155========
1156Fix cramfs detection on big endian.
1157
1158Make WAIT_FOR_SYSFS usable in "normal" rules and silent if the whole
1159device goes away.
1160
4942c78c
KS
1161udev 084
1162========
66c2bc21 1163If BUS== and SYSFS{}== have been used in the same rule, the sysfs
b3e8c12b
AB
1164attributes were only checked at the parent device that matched the
1165by BUS requested subsystem. Fix it to also look at the device we
66c2bc21
KS
1166received the event for.
1167
1168Build variable CROSS has changed to CROSS_COMPILE to match the kernel
1169build name.
4942c78c 1170
36af2ddc
KS
1171udev 083
1172========
1173Fix a bug where NAME="" would prevent RUN from beeing executed.
1174
cef28db9 1175RUN="/bin/program" does not longer automatically add the subsystem
36af2ddc 1176as the first parameter. This is from the days of /sbin/hotplug
cef28db9
KS
1177which is dead now and it's just confusing to need to add a space at
1178the end of the program name to prevent this.
1179If you use rules that need the subsystem as the first parameter,
1180like the old "udev_run_hotlugd" and "udev_run_devd", add the subsystem
1181to the key like RUN+="/bin/program $env{SUBSYSTEM}".
36af2ddc 1182
1a72d06f
KS
1183udev 082
1184========
b3e8c12b 1185The udev man page has moved to udev(7) as it does not describe a command
1a72d06f
KS
1186anymore. The programs udev, udevstart and udevsend are no longer installed
1187by default and must be copied manually, if they should be installed or
1188included in a package.
1189
1190Fix a bug where "ignore_device" could run earlier collected RUN keys before
1191the ignore rule was applied.
1192
1193More preparation for future sysfs changes. usb_id and scsi_id no longer
1194depend on a magic order of devices in the /devices chain. Specific devices
1195should be requested by their subsytem.
1196
1197This will always find the scsi parent device without depending on a specific
1198path position:
1199 dev = sysfs_device_get(devpath);
1200 dev_usb = sysfs_device_get_parent_with_subsystem(dev, "scsi");
1201
1202The "device" link in the current sysfs layout will be automatically
1203_resolved_ as a parent and in the new sysfs layout it will just _be_ the
1204parent in the devpath. If a device is requested by it's symlink, like all
1205class devices in the new sysfs layout will look like, it gets automatically
1206resolved and substituted with the real devpath and not the symlink path.
1207
1208Note:
1209A similar logic must be applied to _all_ sysfs users, including
1210scripts, that search along parent devices in sysfs. The explicit use of
1211the "device" link must be avoided. With the future sysfs layout all
1212DEVPATH's will start with /devices/ and have a "subsystem" symlink poiting
1213back to the "class" or the "bus". The layout of the parent devices in
1214/devices is not necessarily expected to be stable across kernel releases and
1215searching for parents by their subsystem should make sysfs users tolerant
1216for changed parent chains.
1217
7155bfb7
KS
1218udev 081
1219========
1220Prepare udev to work with the experimental kernel patch, that moves
1221/sys/class devices to /sys/devices and /sys/block to /sys/class/block.
1222
1223Clarify BUS, ID, $id usage and fix $id behavior. This prepares for
1224moving the class devices to /sys/devices.
1225
1226Thanks again to Marco for help finding a hopefully nice compromise
1227to make %b simpler and working again.
1228
3e0f8812
KS
1229udev 080
1230========
1aa1e248
KS
1231Complete removal of libsysfs, replaced by simple helper functions
1232which are much simpler and a bit faster. The udev daemon operatesentirely
1233on event parameters and does not use sysfs for simple rules anymore.
1234Please report any new bugs/problems, that may be caused by this big
1235change. They will be fixed immediately.
1236
3e0f8812
KS
1237The enumeration format character '%e' is deprecated and will be
1238removed sometimes from a future udev version. It never worked correctly
1239outside of udevstart, so we can't use it with the new parallel
1240coldplug. A simple enumeration is as useless as the devfs naming
1241scheme, just get rid of both if you still use it.
1242
1243MODALIAS and $modalias is not needed and will be removed from one of
1244the next udev versions, replace it in all rules with ENV{MODALIAS} or
1245the sysfs "modalias" value.
1246
1aa1e248
KS
1247Thanks a lot to Marco for all his help on finding and fixing bugs.
1248
e2e8e5ce
KS
1249udev 079
1250========
1251Let scsi_id request libata drive serial numbers from page 0x80.
1252
1253Renamed etc/udev/persistent.rules to persistent-disk.rules and
1254added /dev/disk/by-name/* for device mapper device names.
1255
1256Removed %e from the man page. It never worked reliably outside
1257of udevstart and udevstart is no longer recommended to use.
1258
fb6e4c28
KS
1259udev 078
1260========
1261Symlinks are now exported to the event environment. Hopefully it's no
1262longer needed to run udevinfo from an event process, like it was
1263mentioned on the hotplug list:
1264 UDEV [1134776873.702967] add@/block/sdb
1265 ...
1266 DEVNAME=/dev/sdb
1267 DEVLINKS=/dev/disk/by-id/usb-IBM_Memory_Key_0218B301030027E8 /dev/disk/by-path/usb-0218B301030027E8:0:0:0
1268
7403f98b
KS
1269udev 077
1270========
1271Fix a problem if udevsend is used as the hotplug handler and tries to use
1272syslog, which causes a "vc" event loop. 2.6.15 will make udevsend obsolete
1273and this kind of problems will hopefully go away soon.
1274
c86be870
KS
1275udev 076
1276========
1277All built-in logic to work around bad sysfs timing is removed with this
1278version. The need to wait for sysfs files is almost fixed with a kernel
1279version that doesn't work with this udev version anyway. Until we fix
1280the timing of the "bus" link creation, the former integrated logic should
1281be emulated by a rule placed before all other rules:
1282 ACTION=="add", DEVPATH=="/devices/*", ENV{PHYSDEVBUS}=="?*", WAIT_FOR_SYSFS="bus"
1283
e0dc4f00
KS
1284The option "udev_db" does no longer exist. All udev state will be in
1285/$udev_root/.udev/ now, there is no longer an option to set this
fc55cf68 1286to anything else.
e0dc4f00
KS
1287If the init script or something else used this value, just depend on
1288this hardcoded path. But remember _all_content_ of this directory is
1289still private to udev and can change at any time.
fc55cf68 1290
c249f66a
KS
1291Default location for rule sripts and helper programs is now: /lib/udev/.
1292Everything that is not useful on the commandline should go into this
e0dc4f00
KS
1293directory. Some of the helpers in the extras folder are installed there
1294now. The rules need to be changed, to find the helpers there.
1295
1296Also /lib/udev/devices is recommended as a directory where packages or
1297the user can place real device nodes, which get copied over to /dev at
1298every boot. This should replace the various solutions with custom config
1299files.
c249f66a 1300
4389ec08
KS
1301Udevsend does no longer start the udev daemon. This must be done with
1302the init script that prepares /dev on tmpfs and creates the initial nodes,
1303before starting the daemon.
1304
a8349b33
KS
1305udev 075
1306========
ef0cd1ac
KS
1307Silent a too verbose error logging for the old hotplug.d/ dev.d/
1308emulation.
1309
a8349b33 1310The copy of klibc is removed. A systemwide installed version of klibc
ef0cd1ac 1311should be used to build a klibc udev now.
a8349b33 1312
bc48bbd9
KS
1313udev 074
1314========
1315NAME="" will not create any nodes, but execute RUN keys. To completely
1316ignore an event the OPTION "ignore_device" should be used.
1317
1318After removal of the reorder queue, events with a TIMEOUT can be executed
1319without any queuing now.
1320
8f528042
KS
1321udev 073
1322========
1323Fixed bug in udevd, if inotify is not available. We depend on netlink
1324uevents now, kernels without that event source will not work with that
1325version of udev anymore.
1326
6cb1bbe4
KS
1327udev 072
1328========
1329The rule parsing happens now in the daemon once at startup, all udev
1330event processes inherit the already parsed rules from the daemon.
1331It is shipped with SUSE10.0 and reduces heavily the system load at
1ad45a47
KS
1332startup. The option to save precompiled rules and let the udev process
1333pick the them up is removed, as it's no longer needed.
6cb1bbe4 1334
ce364175
KS
1335Kernel 2.6.15 will have symlinks at /class/input pointing to the real
1336device. Libsysfs is changed to "translate" the requested link into the
1337real device path, as it would happen with the hotplug event. Otherwise
1338device removal and the udev database will not work.
1339
1340Using 'make STRIPCMD=' will leave the binaries unstripped for debugging
6cb1bbe4
KS
1341and packaging.
1342
1343A few improvements for vol_id, the filesytem probing code.
1344
a743be9a
KS
1345udev 071
1346========
1347Fix a stupid typo in extras/run_directory for "make install".
1348
1349scsi_id creates the temporary devnode now in /dev for usage with a
1350non-writable /tmp directory.
1351
1352The uevent kernel socket buffer can carry app. 50.000 events now,
1353let's see who can break this again. :)
1354
1355The upcoming kernel will have a new input driver core integration.
1356Some class devices are now symlinks to the real device. libsysfs
1357needs a fix for this to work correctly. Udevstart of older udev
1358versions will _not_ create these devices!
1359
b0f65295
KS
1360udev 070
1361========
1362Fix a 'install' target in the Makefile, that prevents EXTRAS from
1363beeing installed.
1364
b581515c
KS
1365udev 069
1366========
1367A bunch of mostly trivial bugfixes. From now on no node name or
1368symlink name can contain any character than plain whitelisted ascii
1369characters or validated utf8 byte-streams. This is needed for the
e688ad2d 1370/dev/disk/by-label/* links, because we import untrusted data and
b581515c
KS
1371export it to the filesystem.
1372
24a12dcb
KS
1373udev 068
1374========
1375More bugfixes. If udevd was started from the kernel, we don't
1376have stdin/stdout/stderr, which broke the forked tools in some
1377situations.
1378
1379udev 067
1380========
1381Bugfix. udevstart event ordering was broken for a long time.
e688ad2d 1382The new run_program() uncovered it, because /dev/null was not
24a12dcb
KS
1383available while we try to run external programs.
1384Now udevstart should create it before we run anything.
1385
6214290d
KS
1386udev 066
1387========
1388Minor bugfixes and some distro rules updates. If you don't have the
1389persistent disk rules in /dev/disk/by-*/* on your distro, just
1390grab it from here. :)
1391
61341fae
KS
1392udev 065
1393========
1394We can use socket communication now to pass events from udev to
1395other programs:
1396 RUN+="socket:/org/freedesktop/hal/udev_event"
1397will pass the whole udev event to the HAL daemon without the need
1398for a forked helper. (See ChangeLog for udevmonitor, as an example)
1399
1400udev 064
1401========
1402Mostly bugfixes and see ChangeLog.
1403
1404The test for the existence of an environment value should be
1405switched from:
1406 ENV{KEY}=="*" to ENV{KEY}=="?*"
e688ad2d 1407because "*" will not fail anymore, if the key does not exist or
61341fae
KS
1408is empty.
1409
1410udev 063
1411========
1412Bugfixes and a few tweaks described in the ChangeLog.
1413
97c0448d
KS
1414udev 062
1415========
1416Mostly a Bugfix release.
1417
1418Added WAIT_FOR_SYSFS="<attribute>" to be able to fight against the sysfs
1419timing with custom rules.
1420
133dd3ce
KS
1421udev 061
1422========
1423We changed the internal rule storage format. Our large rule files took
14242 MB of RAM, with the change we are down to 99kB.
1425
1426If the device-node has been created with default name and no symlink or
1427options are to remenber, it is not longer stored in the udevdb. HAL will
1428need to be updated to work correctly with that change.
1429
1430To overrride optimization flags, OPTFLAGS may be used now.
1431
1432udev 060
1433========
1434Bugfix release.
1435
be0856c8
KS
1436udev 059
1437========
1438Major changes happened with this release. The goal is to take over the
1439complete kernel-event handling and provide a more efficient way to dispatch
1440kernel events. Replacing most of the current shell script logic and the
1441kernel forked helper with a netlink-daemon and a rule-based event handling.
1442
1443o udevd listens to netlink events now. The first valid netlink event
1444 will make udevd ignore any message from udevsend that contains a
1445 SEQNUM, to avoid duplicate events. The forked events can be disabled
1446 with:
1447 echo "" > /proc/sys/kernel/hotplug
1448 For full support, the broken input-subsytem needs to be fixed, not to
1449 bypass the driver core.
1450
1451o /etc/dev.d/ + /etc/hotplug.d/ directory multiplexing is completely
1452 removed from udev itself and must be emulated by calling small
1453 helper binaries provided in the extras folder:
1454 make EXTRAS=extras/run_directory/
1455 will build udev_run_devd and udev_run_hotplugd, which can be called
1456 from a rule if needed:
1457 RUN+="/sbin/udev_run_hotplugd"
1458 The recommended way to handle this is to convert all the calls from
1459 the directories to explicit udev rules and get completely rid of the
1460 multiplexing. (To catch a ttyUSB event, you now no longer need to
1461 fork and exit 300 tty script instances you are not interested in, it
1462 is just one rule that matches exactly the device.)
1463
1464o udev handles now _all_ events not just events for class and block
1465 devices, this way it is possible to control the complete event
1466 behavior with udev rules. Especially useful for rules like:
1467 ACTION="add", DEVPATH="/devices/*", MODALIAS=="?*", RUN+="/sbin/modprobe $modalias"
1468
1469o As used in the modalias rule, udev supports now textual
1470 substitution placeholder along with the usual format chars. This
1471 needs to be documented, for now it's only visible in udev_rules_parse.c.
1472
1473o The rule keys support now more operations. This is documented in the
1474 man page. It is possible to add values to list-keys like the SYMLINK
1475 and RUN list with KEY+="value" and to clear the list by assigning KEY="".
1476 Also "final"-assignments are supported by using KEY:="value", which will
1477 prevent changing the key by any later rule.
1478
1479o kernel 2.6.12 has the "detached_state" attribute removed from
1480 sysfs, which was used to recognize sysfs population. We switched that
1481 to wait for the "bus" link, which is only available in kernels after 2.6.11.
1482 Running this udev version on older kernels may cause a short delay for
1483 some events.
1484
1485o To provide infrastructure for persistent device naming, the id programs:
1486 scsi_id, vol_id (former udev_volume_id), and ata_id (new) are able now
1487 to export the probed data in environment key format:
1488 pim:~ # /sbin/ata_id --export /dev/hda
1489 ID_MODEL=HTS726060M9AT00
1490 ID_SERIAL=MRH401M4G6UM9B
1491 ID_REVISION=MH4OA6BA
1492
1493 The following rules:
1494 KERNEL="hd*[!0-9]", IMPORT="/sbin/ata_id --export $tempnode"
1495 KERNEL="hd*[!0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_MODEL}_$env{ID_SERIAL}"
1496
1497 Will create:
1498 kay@pim:~> tree /dev/disk
1499 /dev/disk
1500 |-- by-id
1501 | |-- HTS726060M9AT00_MRH401M4G6UM9B -> ../../hda
1502 | `-- IBM-Memory_Key -> ../../sda
1503 |-- by-label
1504 | |-- swap -> ../../hda1
1505 | |-- date -> ../../sda1
1506 | `-- home -> ../../hda3
1507 `-- by-uuid
1508 |-- 2E08712B0870F2E7 -> ../../hda3
1509 |-- 9352cfef-7687-47bc-a2a3-34cf136f72e1 -> ../../hda1
1510 |-- E845-7A89 -> ../../sda1
1511 `-- b2a61681-3812-4f13-a4ff-920d70604299 -> ../../hda2
1512
1513 The IMPORT= operation will import these keys in the environment and make
1514 it available for later PROGRAM= and RUN= executed programs. The keys are
1515 also stored in the udevdb and can be queried from there with one of the
1516 next udev versions.
1517
1518o A few binaries are silently added to the repository, which can be used
1519 to replay kernel events from initramfs instead of using coldplug. udevd
1520 can be instructed now to queue-up events while the stored events from
1521 initramfs are filled into the udevd-queue. This code is still under
1522 development and there is no documentation now besides the code itself.
1523 The additional binaries get compiled, but are not installed by default.
1524
1525o There is also a temporary fix for a performance problem where too many
1526 events happen in parallel and every event needs to parse the rules.
1527 udev can now read precompiled rules stored on disk. This is likely to be
1528 replaced by a more elegant solution in a future udev version.
1529
1530udev 058
1531========
1532With kernel version 2.6.12, the sysfs file "detached_state" was removed.
1533Fix for libsysfs not to expect this file was added.
1534
6b493a20
KS
1535udev 057
1536========
e4388fb3 1537All rules are applied now, but only the first matching rule with a NAME-key
16eb35d1
KS
1538will be applied. All later rules with NAME-key are completely ignored. This
1539way system supplied symlinks or permissions gets applied to user-defined
1540naming rules.
1541
e4388fb3
KS
1542Note:
1543Please check your rules setup, if you may need to add OPTIONS="last_rule"
1544to some rules, to keep the old behavior.
1545
1546The rules are read on "remove"-events too. That makes is possible to match
1547with keys that are available on remove (KERNEL, SUBSYSTEM, ID, ENV, ...) to
16eb35d1
KS
1548instruct udev to ignore an event (OPTIONS="ignore_device").
1549The new ACTION-key may be used to let a rule act only at a "remove"-event.
e4388fb3
KS
1550
1551The new RUN-key supports rule-based execution of programs after device-node
16eb35d1
KS
1552handling. This is meant as a general replacement for the dev.d/-directories
1553to give fine grained control over the execution of programs.
e4388fb3
KS
1554
1555The %s{}-sysfs format char replacement values are searched at any of the
1556devices in the device chain now, not only at the class-device.
1557
6b493a20
KS
1558We support log priority levels now. The value udev_log in udev.conf is used
1559to determine what is printed to syslog. This makes it possible to
1560run a version with compiled-in debug messages in a production environment
1561which is sometimes needed to find a bug.
1562It is still possible to supress the inclusion of _any_ syslog usage with
1563USE_LOG=false to create the smallest possible binaries if needed.
1564The configured udev_log value can be overridden with the environment variable
1565UDEV_LOG.
1566
7f7ae03a
KS
1567udev 056
1568========
1569Possible use of a system-wide klibc:
16eb35d1 1570 make USE_KLIBC=true KLCC=/usr/bin/klcc all
7f7ae03a
KS
1571will link against an external klibc and our own version will be ignored.
1572
143139a1
KS
1573udev 055
1574========
1575We support an unlimited count of symlinks now.
1576
1577If USE_STATIC=true is passed to a glibc build, we link statically and use
1578a built-in userdb parser to resolve user and group names.
1579
e688ad2d 1580The PLACE= key is gone. It can be replaced by an ID= for a long time, because
143139a1
KS
1581we walk up the chain of physical devices to find a match.
1582
28ce66de 1583The KEY="<value>" format supports '=', '==', '!=,' , '+=' now. This makes it
38285d23
KS
1584easy to skip certain attribute matches without composing rules with weird
1585character class negations like:
28ce66de 1586 KERNEL="[!s][!c][!d]*"
38285d23 1587this can now be replaced with:
28ce66de 1588 KERNEL!="scd*"
38285d23
KS
1589The current simple '=' is still supported, and should work as it does today,
1590but existing rules should be converted if possible, to be better readable.
1591
fc90ce81
KS
1592We have new ENV{}== key now, to match against a maximum of 5 environment
1593variables.
0e33828a 1594
e688ad2d 1595udevstart is its own binary again, because we don't need co carry this araound
0e33828a 1596with every forked event.