1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-31 07:51:08 +03:00
Commit Graph

383 Commits

Author SHA1 Message Date
Kay Sievers
cef28db9db 083 release 2006-01-27 01:41:07 +01:00
Kay Sievers
1a72d06f7b 082 release 2006-01-25 02:45:48 +01:00
Kay Sievers
c233b59baa remove udev, udevstart, udevsend from the default installation
They still get compiled and are used for the test program, but
everything should just work with the daemon and the kernel
"uevent" triggers these days.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-24 20:29:37 +01:00
Kay Sievers
2c769419a1 move udev(8) manpage to udev(7)
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-24 20:21:42 +01:00
Kay Sievers
d8a57e7c26 Makefile: remove dynamic config file generation
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-23 03:24:16 +01:00
Kay Sievers
7155bfb7fa 081 release 2006-01-16 06:16:57 +01:00
Kay Sievers
8531b0b964 080 release 2006-01-09 21:30:04 +01:00
Kay Sievers
1aa1e24848 replace libsysfs
We never used any of the libsysfs convenience features. Here we replace
it completely with 300 lines of code, which are much simpler and a bit
faster cause udev(d) does not open any syfs file for a simple event which
does not need any parent device information.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-09 21:18:00 +01:00
Brent Cook
a5e551b996 fix dependency for make -j2 2005-12-29 03:42:38 +01:00
Kay Sievers
e2e8e5ce96 079 release 2005-12-23 00:51:30 +01:00
Kay Sievers
ba65db20cf 078 release 2005-12-17 16:40:29 +01:00
Kay Sievers
c756114f8e allow C99 statements
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-12-15 12:30:25 +01:00
Kay Sievers
731a7d6d75 077 release 2005-12-04 03:01:48 +01:00
Kay Sievers
ed0e3cbd6d add target to to generate ChangeLog section
I can't remember that magic sequence...

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-12-04 02:31:38 +01:00
Kay Sievers
a2f87fddbf update SUSE rules
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-12-04 01:48:53 +01:00
Kay Sievers
4a924f0a58 076 release 2005-11-22 17:34:55 +01:00
Scott James Remnant
c699bc48e1 Makefile: fail, if submake fails 2005-11-22 16:33:25 +01:00
Kay Sievers
4389ec08fb don't start udevd from udevsend
Doesn't make any sense these days to let the kernel start
the daemon.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-17 18:50:47 +01:00
Kay Sievers
d7363ee14c Makefile: remove exec_prefix and srcdir
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-16 04:35:37 +01:00
Kay Sievers
fc55cf68ca remove "udev_db" option from config file
All udev state is kept in /$udev_root/.udev/ now. No option to
configure that anymore, it will always be there.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-16 04:14:15 +01:00
Kay Sievers
c86be870ce remove all built-in wait_for_sysfs logic
Most of the issues are fixed with the kernel we depend on, for the
remaing ones see the RELEASE-NOTES for a special rule to add.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-12 04:17:48 +01:00
Kay Sievers
ef0cd1ac93 075 release 2005-11-10 02:20:25 +01:00
Kay Sievers
a8d141a3c1 replace udeveventrecorder by a shell script
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-10 02:06:43 +01:00
Kay Sievers
a8349b33e5 remove our own copy of klibc
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-09 15:42:07 +01:00
Kay Sievers
bc48bbd9cd 074 release 2005-11-07 18:52:26 +01:00
Kay Sievers
e07a3d79ba remove udevinitsend
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-07 17:14:38 +01:00
Kay Sievers
8f528042ca 073 release 2005-11-07 02:44:34 +01:00
Kay Sievers
0b3dfb3d72 udevd: depend on netlink and remove all sequence reorder logic
Netlink will never get out-of-order and we just depend on it from
now on. Udevsend messages will have no effect if they contain a
sequence number (SEQNUM).

Thanks to Bastian Blank <waldi@debian.org>, for the debugging session
which identified a bug where the timeouts are not working if
inotify was not available. All the timeout handling is removed
now and this issue should be solved.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-07 02:22:44 +01:00
Kay Sievers
1ad45a47ca 072 release 2005-11-05 22:05:35 +01:00
Kay Sievers
287814b23c remove precompiled rules option
It was a workaround for speed up udev "coldplug", where ~800 events
happened a second time during bootup. No need for it with the rules
aleady parsed in the daemon.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-05 20:00:31 +01:00
Kay Sievers
c1bf1edeb7 "STRIPCMD=" for the EXTRAS
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-28 01:49:22 +02:00
Kay Sievers
6cb1bbe471 "make STRIPCMD=" will disable the stripping of binaries
Almost all packagers have always patched the stripping out,
cause the buildsystems takes care of it.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-27 21:49:13 +02:00
Kay Sievers
cf686d37b4 cleanup make release
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-27 19:38:36 +02:00
Kay Sievers
f032e0ed6b allow to pass STRIPCMD, to skip stripping of binaries
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-27 19:14:21 +02:00
Kay Sievers
49fb51c615 use DESTDIR on uninstall, no need to pass prefix to submake
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
2005-10-27 18:42:52 +02:00
Kay Sievers
638b983b4d cleanup compiler/linker flags
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-27 18:20:58 +02:00
Kay Sievers
a743be9a78 071 release 2005-10-20 00:28:34 +02:00
Kay Sievers
586e1a37ef fix selinux compilation
Taken from Red Hat CVS.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-16 14:16:43 +02:00
Greg KH
8355c61b48 070 release 2005-09-14 16:19:07 -07:00
Kay Sievers
85701baede add install test to 'make buildtest'
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-14 17:29:27 +02:00
Kay Sievers
db28d2ea4f EXTRAS: cleanup and sync all Makefiles
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-14 17:00:02 +02:00
Jürg Billeter
1ac216b198 EXTRAS/Makefile: fix install targets to match main Makefile 2005-09-14 14:27:28 +02:00
Greg KH
a2c7b2173a 069 release 2005-09-13 10:24:51 -07:00
Kay Sievers
a8b38f1c44 fic gcov use and move it into the Makefile
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-12 15:26:33 +02:00
Kay Sievers
17d3cb1288 Makefile: cleanup install targets
Split into individual target and never remove any config file.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-12 14:21:14 +02:00
Kay Sievers
7a526da67d Makefile: fix prerequisits for $(PROGRAMS)
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-09-10 23:35:30 +02:00
Kay Sievers
7b86ada7d4 all man pages rewritten to use DocBook XML
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-30 23:30:52 +02:00
Kay Sievers
0e47c219fc Makefile: remove all the duplicated rules
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-30 17:03:25 +02:00
Kay Sievers
420a506ef0 write man page masters in DocBook XML
The troff man pages will still be checked into the tree but the
source is DocBook XML format living in the docs/ directory now.
Start with the easy ones, the main udev page is still left to
rewrite.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-30 04:41:42 +02:00
Kay Sievers
5b13ecb830 add uft8 validation for safe volume label exporting
We will not support any other character encoding than plain ascii
or utf8 for volume labels. All invalid utf8 and non-ascii characters
are substituted for security reasons. No options, no fancy heuristics.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-28 13:49:32 +02:00
Greg KH
8c11a2f0ff 068 release 2005-08-18 10:04:49 -07:00
Kay Sievers
beb9f9ccb8 move udevmonitor to /usr/sbin
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-15 12:00:43 +02:00
Greg Kroah-Hartman
8aafc06d94 067 release 2005-08-13 10:10:50 -07:00
Kay Sievers
d2e8d41b9c fix make install, as we don't provide a default rule set anymore
Several people complained about the "default" rules and the "default"
setup. Here we start to remove things where we can't hava a  "default".
The best examples for rules are in the distro folders, just pick the one
that matches your needs and start from there.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-12 02:07:50 +02:00
Greg KH
f5bed72a53 066 release 2005-08-11 15:44:08 -07:00
Kay Sievers
59d6bfefce split udev_util in several files
It too big for the small tools to link against for only the log function.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-10 16:54:14 +02:00
Greg Kroah-Hartman
cfb7ac2b5b 065 release 2005-08-02 13:56:41 -07:00
Kay Sievers
1bc3362678 add udevmonitor, to debug netlink+udev events at the same time
This rule:
  RUN+="socket:/org/kernel/udev/monitor"

send the event to the running monitor. Running udevstart give a nice
monitor output. Also the delay between the kernel uevent and the udev
udev event can be investigated:

  pim:/home/kay/src/udev-kay # ./udevmonitor
  UEVENT[1122920113] add@/devices/pci0000:00/0000:00:1d.1/usb2/2-1
  UEVENT[1122920113] add@/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1:1.0
  UEVENT[1122920113] add@/class/scsi_host/host12
  UEVENT[1122920113] add@/class/usb_device/usbdev2.99
  UEVENT[1122920113] add@/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1:1.0/host12/target12:0:0/12:0:0:0
  UDEV  [1122920113] add@/devices/pci0000:00/0000:00:1d.1/usb2/2-1
  UEVENT[1122920113] add@/block/sda
  UEVENT[1122920113] add@/class/scsi_generic/sg0
  UEVENT[1122920113] add@/class/scsi_device/12:0:0:0
  UDEV  [1122920113] add@/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1:1.0
  UDEV  [1122920113] add@/class/scsi_host/host12
  UDEV  [1122920113] add@/class/usb_device/usbdev2.99
  UDEV  [1122920113] add@/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1:1.0/host12/target12:0:0/12:0:0:0
  UDEV  [1122920113] add@/block/sda
  UDEV  [1122920113] add@/class/scsi_generic/sg0
  UDEV  [1122920113] add@/class/scsi_device/12:0:0:0
  UEVENT[1122920115] add@/block/sda/sda1
  UDEV  [1122920115] add@/block/sda/sda1

  pim:/home/kay/src/udev-kay # ./udevmonitor --env
  UDEV  [1122920185] add@/block/sda/sda1
  ACTION=add
  DEVPATH=/block/sda/sda1
  SUBSYSTEM=block
  SEQNUM=2159
  MINOR=1
  MAJOR=8
  PHYSDEVPATH=/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1:1.0/host13/target13:0:0/13:0:0:0
  PHYSDEVBUS=scsi
  PHYSDEVDRIVER=sd
  UDEVD_EVENT=1
  UDEV_LOG=3
  ID_VENDOR=IBM
  ID_MODEL=Memory_Key
  ID_REVISION=3.04
  ID_SERIAL=IBM_Memory_Key_0218B301030027E8
  ID_TYPE=disk
  ID_BUS=usb
  ID_PATH=usb-0218B301030027E8:0:0:0
  ID_FS_USAGE=filesystem
  ID_FS_TYPE=vfat
  ID_FS_VERSION=FAT16
  ID_FS_UUID=42D8-9E02
  ID_FS_LABEL_SAFE=s_p_c
  DEVNAME=/dev/sda1

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-01 20:22:46 +02:00
Kay Sievers
70721db6d7 fix GGC signed pointer warnings and switch volume_id to stdint
Solaris uses volume_id now and they fiddled around with configure scripts
to map the linux kernel int types. Adding the types locally to volume_id
breaks the klibc build, so just switch to these ugly types and forget it. :)

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-08-01 01:33:36 +02:00
Greg Kroah-Hartman
fa5c98ab9c 063 release 2005-07-23 12:26:28 -04:00
Kay Sievers
e8d569b414 move code to its own files
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-22 12:35:58 -04:00
Kay Sievers
594dd61025 allow rules to have labels and skip to next label
This will allow us to have whole blocks of rules to skip
conditionally. The following section creates the node "yes":
  GOTO="TEST"
  NAME="no"
  NAME="no2", LABEL="NO"
  NAME="yes", LABEL="TEST"
  NAME="no3"
2005-07-16 07:46:31 +02:00
Greg KH
8365854ccd 063 release 2005-07-14 16:09:21 -07:00
Greg KH
0de3c3edeb add 'make tests' as I'm always typing that one wrong...
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-07-14 15:27:30 -07:00
Greg Kroah-Hartman
face198a5f 062 release 2005-07-07 15:00:50 -07:00
Greg Kroah-Hartman
a82f23bf96 061 release 2005-07-06 14:24:08 -07:00
Kay Sievers
1196e46c33 we want to provide OPTFLAGS
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-06 21:36:21 +02:00
Kay Sievers
f41951c840 set default device node to /dev
Using prefix seems pretty useless and the empty /udev
with every "make install" is annoying.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-07-06 01:44:34 +02:00
Greg KH
281c368b8f 060 release 2005-07-02 23:55:08 -07:00
Gustavo Zacarias
3cf745e128 [PATCH] Udev doesn't properly build with $CROSS
Patch attached - basically you're always invoking klcc for the udev
build itself, but klibc builds $(CROSS)klcc.
Thus static cross builds don't work.
2005-07-01 12:45:06 -07:00
Greg Kroah-Hartman
4d8c16072a 059 release 2005-06-30 16:27:52 -07:00
Kay Sievers
6bf0ffe8fd allow rules to be compiled to one binary file
All the rule files can be compiled into a single file,
which can be mapped into the udev process to avoid parsing
the rules with every event.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-24 18:05:32 +02:00
Kay Sievers
e33d1515e2 Makefile: remove dev.d/ hotplug.d/ from install target
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-16 03:26:16 +02:00
Kay Sievers
8ab44e3fd0 udevd: control log-priority of the running daemon with udevcontrol
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-16 01:58:47 +02:00
Kay Sievers
3632a36858 udeveventrecorder: add small program that writes an event to disk
Used for debugging and event replay from initramfs.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-15 03:07:14 +02:00
Kay Sievers
c07669bd66 udev: handle all events - not only class and block devices
Handle all events with rules. If udev is expected to handle hotplug.d/
the exernal helper must be called.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-05 15:55:29 +02:00
Kay Sievers
1682c8c4a3 Makefile: fix DESTDIR
Patch from: Vassilis Virvilis <vasvir@iit.demokritos.gr>

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-05 04:48:09 +02:00
Kay Sievers
0590abd720 udevd: add initsend
Transfer stored events from initramfs to the running udevd to replay
events after userspace is ready.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-05 04:44:07 +02:00
Kay Sievers
3b47c7394d udevd: add udevcontrol
Controls the behavior of the running daemon. Currently only stopping and starting
of the execution queue is supported.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-06-05 04:41:09 +02:00
Greg KH
5e65ab9a19 Fix makefile to allow 'make release' to work with git 2005-05-20 13:22:05 -07:00
Greg KH
db60d377b0 058 release 2005-05-20 13:18:28 -07:00
gregkh@suse.de
9530f1fe19 [PATCH] 057 relelease 2005-04-26 23:55:01 -07:00
kay.sievers@vrfy.org
05bd6efb41 [PATCH] add test for make -j4 to build-check 2005-04-26 23:55:01 -07:00
kay.sievers@vrfy.org
87b60f72b7 [PATCH] fix make -j4 and the local klibc-install 2005-04-26 23:55:00 -07:00
kay.sievers@vrfy.org
821d0ec803 [PATCH] add RUN key to be able to run rule based notification
SUBSYSTEM=="block", RUN="/sbin/program"
  will execute the program only for block device events.

ACTION="remove", SUBSYSTEM=="block", RUN"/sbin/program"
  will execute the program, if a block device is removed.
2005-04-26 23:55:00 -07:00
kay.sievers@vrfy.org
6b493a20e1 [PATCH] support log-priority levels in udev.conf 2005-04-26 23:54:59 -07:00
gregkh@suse.de
69b5c2ca51 [PATCH] 056 release 2005-04-26 23:54:59 -07:00
kay.sievers@vrfy.org
21c0367349 [PATCH] klibc: remove SCCS directories from the temporary klibc install 2005-04-26 23:54:59 -07:00
kay.sievers@vrfy.org
92ebb398ed [PATCH] klibc: use klcc wrapper instead of our own Makefile 2005-04-26 23:53:53 -07:00
gregkh@suse.de
2861655484 [PATCH] 055 release 2005-04-26 23:53:53 -07:00
kay.sievers@vrfy.org
e5e322bc62 [PATCH] rename namedev_dev to udev_rule 2005-04-26 23:53:17 -07:00
kay.sievers@vrfy.org
319112e295 [PATCH] remove udevstart on make clean 2005-04-26 23:53:17 -07:00
kay.sievers@vrfy.org
56a8a624ee [PATCH] split udev and udevstart 2005-04-26 23:51:00 -07:00
kay.sievers@vrfy.org
6c18b1fb87 [PATCH] rename LOG to USE_LOG in all places 2005-04-26 23:48:48 -07:00
kay.sievers@vrfy.org
57e1a2770c [PATCH] remove Makefile magic for klibc integration
The new libsysfs and klibc don't need that anymore.
Wrap getpwnam(), so we can use the built-in /etc/passwd
parser for statically compiled glibc binaries too.
2005-04-26 23:48:48 -07:00
kay.sievers@vrfy.org
5f335ca4af [PATCH] klibc_fixups: remove no longer needed stuff 2005-04-26 23:48:48 -07:00
kay.sievers@vrfy.org
9bad6028f7 [PATCH] fix up segfaulting binaries with new klibc 2005-04-26 23:48:48 -07:00
kay.sievers@vrfy.org
733677e2c2 [PATCH] klibc_fixups: remove unneeded stuff 2005-04-26 23:48:48 -07:00
gregkh@suse.de
6d7a6d08c2 [PATCH] 054 release 2005-04-26 23:39:48 -07:00
kay.sievers@vrfy.org
f385ff6512 [PATCH] big libsysfs diet (pre 2.0 version) 2005-04-26 23:36:13 -07:00