1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-31 07:51:08 +03:00
Backports of patch from systemd git to stable distributions
Go to file
2006-04-25 18:50:56 +02:00
docs update to udev-084/doc/writing_udev_rules 2006-02-21 18:53:25 +01:00
etc/udev persistent rules: fix typo in dm rule 2006-04-22 17:28:50 +02:00
extras path_id: fix SAS device path generation 2006-04-21 20:02:58 +02:00
test allow NAME=="value" to check for already assigned value 2006-04-24 19:25:55 +02:00
.gitignore remove old symlinks before creating current ones 2006-04-12 22:08:05 +02:00
ChangeLog 090 release 2006-04-15 19:32:38 +02:00
COPYING [PATCH] added initial documentation and gpl license 2005-04-26 21:00:32 -07:00
FAQ update README 2006-04-02 16:01:00 +02:00
list.h [PATCH] cleanup list.h 2005-04-26 23:51:00 -07:00
logging.h whitespace fixes 2006-01-28 16:39:46 +01:00
Makefile 090 release 2006-04-15 19:32:38 +02:00
README update README 2006-04-02 16:01:00 +02:00
RELEASE-NOTES 090 release 2006-04-15 19:32:38 +02:00
TODO path_id: add bus to USB path 2006-03-22 12:21:49 +01:00
udev_config.c better log test and comments 2006-01-13 13:17:10 +01:00
udev_db.c replace libsysfs 2006-01-09 21:18:00 +01:00
udev_device.c remove old symlinks before creating current ones 2006-04-12 22:08:05 +02:00
udev_libc_wrapper.c include errno.h in udev_libc_wrapper.c 2006-02-15 21:12:49 +01:00
udev_libc_wrapper.h add inotify support for hppa and MIPS and log if inotify is not available 2006-04-06 19:52:41 +02:00
udev_node.c udevtest: don't try to delete symlinks 2006-04-15 19:49:15 +02:00
udev_rules_parse.c allow NAME=="value" to check for already assigned value 2006-04-24 19:25:55 +02:00
udev_rules.c allow NAME=="value" to check for already assigned value 2006-04-24 19:25:55 +02:00
udev_rules.h rename apply_format() cause it is public now 2006-01-25 01:28:31 +01:00
udev_selinux.c replace libsysfs 2006-01-09 21:18:00 +01:00
udev_selinux.h selinux merge fixups again... 2005-04-26 23:52:14 -07:00
udev_sysfs.c add debug output to sysfs operations 2006-01-30 08:39:55 +01:00
udev_utils_file.c replace libsysfs 2006-01-09 21:18:00 +01:00
udev_utils_run.c don't add $SUBSYSTEM automatically as $1 to programs 2006-01-26 04:38:33 +01:00
udev_utils_string.c add ',' to trusted chars 2006-03-17 01:56:02 +01:00
udev_utils.c apply format char to variables exported by ENV 2006-04-15 19:32:05 +02:00
udev.7 update man page 2006-03-23 14:01:04 +01:00
udev.c let "ignore_device" always return the event successfully 2006-01-25 02:21:07 +01:00
udev.h apply format char to variables exported by ENV 2006-04-15 19:32:05 +02:00
udev.xml update man page 2006-03-23 14:01:04 +01:00
udevcontrol.c replace libsysfs 2006-01-09 21:18:00 +01:00
udevd.8 man pages: mention udev(7) not udev(8) 2006-03-28 20:16:34 +02:00
udevd.c udevd: export initial sequence number on startup 2006-04-25 18:50:56 +02:00
udevd.h udevd: export current seqnum and add udevsettle 2006-04-05 00:08:10 +02:00
udevd.xml man pages: mention udev(7) not udev(8) 2006-03-28 20:16:34 +02:00
udevinfo.8 man pages: mention udev(7) not udev(8) 2006-03-28 20:16:34 +02:00
udevinfo.c replace libsysfs 2006-01-09 21:18:00 +01:00
udevinfo.xml man pages: mention udev(7) not udev(8) 2006-03-28 20:16:34 +02:00
udevmonitor.8 man pages: mention udev(7) not udev(8) 2006-03-28 20:16:34 +02:00
udevmonitor.c replace libsysfs 2006-01-09 21:18:00 +01:00
udevmonitor.xml man pages: mention udev(7) not udev(8) 2006-03-28 20:16:34 +02:00
udevsend.8 man pages: mention udev(7) not udev(8) 2006-03-28 20:16:34 +02:00
udevsend.c replace libsysfs 2006-01-09 21:18:00 +01:00
udevsend.xml man pages: mention udev(7) not udev(8) 2006-03-28 20:16:34 +02:00
udevsettle.8 udevd: export current seqnum and add udevsettle 2006-04-05 00:08:10 +02:00
udevsettle.c set default udevsettle timeout to 3 minutes 2006-04-06 19:46:24 +02:00
udevsettle.xml udevd: export current seqnum and add udevsettle 2006-04-05 00:08:10 +02:00
udevstart.8 man pages: mention udev(7) not udev(8) 2006-03-28 20:16:34 +02:00
udevstart.c merge device event handling and make database content available on "remove" 2006-04-05 22:29:33 +02:00
udevstart.xml man pages: mention udev(7) not udev(8) 2006-03-28 20:16:34 +02:00
udevtest.8 man pages: mention udev(7) not udev(8) 2006-03-28 20:16:34 +02:00
udevtest.c udevtest: add udev_rules_apply_format() to RUN keys 2006-01-25 02:18:13 +01:00
udevtest.xml man pages: mention udev(7) not udev(8) 2006-03-28 20:16:34 +02:00
udevtrigger.8 man pages: mention udev(7) not udev(8) 2006-03-28 20:16:34 +02:00
udevtrigger.c udevtrigger: fix event order 2006-04-08 18:19:10 +02:00
udevtrigger.xml man pages: mention udev(7) not udev(8) 2006-03-28 20:16:34 +02:00

udev - userspace device management

For more information see the files in the docs/ directory.

Important Note:
  Integrating udev in the system is a whole lot of work, has complex dependencies
  and differs a lot from distro to distro. All major distros depend on udev these
  days and the system may not work without a proper installed version. The upstream
  udev project does not support or recomend to replace a distro's udev installation
  with the upstream version. The installation of a unmodified upstream version may
  render your system unusable. Until now, there is no "default" setup or a set of
  "default" rules provided by the upstream udev version.

Requirements:
  - 2.6.x version of the Linux kernel. See the RELEASE-NOTES file in the
    udev tree and the Documentation/Changes in the kernel source tree for
    the actual dependency.

  - The kernel must have sysfs and unix domain socket enabled.
    (unix domain sockets (CONFIG_UNIX) as a loadable kernel module may work,
     but it is completely silly - don't complain if anything goes wrong.)

  - The proc filesystem must be mounted on /proc.

  - The sysfs filesystem must be mounted at /sys. No other location
    will be supported by udev.


Operation:
  Udev creates and removes device nodes in /dev, based on events the kernel
  sends out on device discovery or removal.

  - Early in the boot process, the /dev directory should get a tmpfs
    filesystem mounted, which is populated from scratch by udev. Created nodes
    or changed permissions will not survive a reboot, which is intentional.

  - The content of /lib/udev/devices directory which contains the nodes,
    symlinks and directories, which are always expected to be in /dev, should
    be copied over to the tmpfs mounted /dev, to provide the required nodes
    to initialize udev and continue booting.

  - The udevd daemon must be started by an init script to receive netlink
    uevents from the kernel driver core.

  - From kernel version 2.6.15 on, the hotplug helper /sbin/hotplug should
    be disabled with an init script before actions like loading kernel
    modules are taken, which may cause a lot of events.

  - All kernel events are matched against a set of specified rules in
    /etc/udev/rules.d/ which make it possible to hook into the event
    processing to load required kernel modules and setup devices. For all
    devices the kernel exports a major/minor number, udev will create a
    device node with the default kernel name or the one specified by a
    matching udev rule.


Compile Options:
  DESTDIR
  	Prefix of install target, used for package building.
  USE_LOG
  	If set to 'true', udev is able to pass errors or debug information
  	to syslog. This is very useful to see what udev is doing or not doing.
  	It is enabled by default, don't expect any useful answer, if you
  	need to hunt a bug, but you can't enable syslog.
  DEBUG
  	If set to 'true', very verbose debugging messages will be compiled
  	into the udev binaries. The actual level of debugging is specified
  	in the udev config file.
  USE_SELINUX
  	If set to 'true', udev will be built with SELinux support
  	enabled.  This is disabled by default.
  USE_KLIBC
  	If set to 'true', udev is built and linked against klibc.
  	Default value is 'false'. KLCC specifies the klibc compiler
  	wrapper, usually located at /usr/bin/klcc.
  EXTRAS
  	list of helper programs in extras/ to build.
        make EXTRAS="extras/cdrom_id extras/scsi_id extras/volume_id"


Installation:
  - The install target intalls the udev binaries in the default locations,
    All at boot time reqired binaries will be installed in /lib/udev or /sbin.

  - The default location for scripts and binaries that are called from
    rules is /lib/udev. Other packages who install udev rules, should use
    that directory too.

  - It is recommended to use the /lib/udev/devices directory to place
    device nodes and symlinks in, which are copied to /dev at every boot.
    That way, nodes for broken subsystems or devices which can't be
    detected automatically by the kernel, will always be available.

  - Copies of the rules files for the major distros are provided as examples
    in the etc/udev directory.

  - The persistent device naming links in /dev/disk/ are required by other
    software that depends on the data udev has collected from the devices
    and should be installed by default with every udev installation.

Please direct any comment/question/concern to the linux-hotplug-devel mailing list at:
  linux-hotplug-devel@lists.sourceforge.net