summaryrefslogtreecommitdiff
path: root/rules
AgeCommit message (Collapse)Author
2012-11-24Fix paths: test/udev-test.pl now works under sudo make distcheckAnthony G. Basile
We move the test-udev.c and test-libudev.c from src/test to test. This corrects the a problem with hard coded relative paths finding the test/test/sys directory created by test/udev-test.pl. This commit draws heavily from nvinson patch in https://github.com/gentoo/eudev/pull/20 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-11-23Consolidate configuration of all installation paths into configure.acAnthony G. Basile
The configuration of the installation paths for various components was scattered between the main configure.ac file and the various Makefile.am's. These components are: udev config file, hwdb, keymaps and force-release keymaps and the rules. This commit consolidates them all into one point in configure.ac and anticipates the inclusion of new AM_CPPFLAGS of the form -DHWDB_BIN=@udevhwdbdir@ as upstream has done, so it is easier to address issues like: https://github.com/gentoo/eudev/issues/17 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-11-23Permit users to disable module loading supportRichard Yao
Inspired by e30431623a7d871da123cc37055ac49abf2c20ea from systemd. Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-23Reintroduce blkid-kmodRichard Yao
This opens the door to using disabling the use of kmod from autotools. Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-22Make udevlibexecdir be substituted out of configure and assigned ↵Ian Stakenvicius
${rootlibdir}/udev instead of ${root}/lib/udev
2012-11-21Fixed a syntax errorIan Stakenvicius
2012-11-20Reintroduce keymaps build and testAnthony G. Basile
This commit reintroduces code to 1) build src/keymap 2) test keymap/Makefile.am that it has all the key maps listed 3) test that all the key names in keymap/* are in <linux/input.h> 4) do a syntax check on rules/*.rules which now includes 95-keymap.rules and 95-keyboard-force-release.rules For #4, the regex expressions in rule-syntax-check.py had to be updated. They do not allow trailing comments via # comment, and I did not include that. A rule in 95-keymap.rules had to have its comment moved from the end to another line. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-11-19Reintroduce blkid-builtinRichard Yao
The build failure that prompted its removal has been resolved. Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-17Eliminate blkid-builtinRichard Yao
Changes to rules were introduced by 7c2dee4a4d7f1b264031daaee786a8fe429884e1 while builtin-blkid support was introduced in other commits. The removal of systemd resulted in this code causing linker errors. This code adds complexity with no clear benefit, so we remove it. Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-17Eliminate kmod dependencyRichard Yao
Changes to rules were introduced by 06316d9f1a91b4d3efdb7402e72498cb3deb1806 while kmod support was introduced in other commits. A ton of commits were made involving kmod and it is quite clear that it is broken, so we remove it. This changes our rules to depend on modprobe. As long as the modprobe binary is in /, and not /usr, udev module loading should function properly. Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-15Final step of revamping the build systemAnthony G. Basile
The structure of the source tree is basically correct and this is about as far as we can go without hacking at the C code.
2012-11-15Second step of revamping the build systemAnthony G. Basile
The original Makefile.am was drawn to the top level. This commit breaks it out into the various directories with SUBDIRS connecting them. This makes each directory easier to maintain.
2012-11-15Isolation of udev code from remaining systemdAnthony G. Basile
This commit is a first attempt to isolate the udev code from the remaining code base. It intentionally does not modify any files but purely delete files which, on a first examination, appear to not be needed. This is a sweeping commit which may easily have missed needed code. Files can be retrieved by doing a checkout from the previous commit: git checkout 2944f347d0 -- <filename>
2012-11-09udev: net_id - add builtin to retrieve data for network devicesKay Sievers
2012-10-25rules: fix usb_id/hwdb mixup in tty-description.rulesKay Sievers
<grawity> btw, in 15ce372b75a "call 'hwdb' with --subsystem=" you actually added "usb_id --subsystem=usb" (75-tty-description.rules) <kay> ouch :)
2012-10-25rules: call hwdb for all devices with a 'modalias'Kay Sievers
2012-10-25rules: call 'hwdb' with --subsystem= where appropriateKay Sievers
2012-10-23rules: Remove HP iLO from USB HID PM rulesTony Camuso
HP iLO fw versions below 1.50 incorrectly report that HP iLO virtual Kbd/Mouse supports remote wakeup. With the rules change in commit 3bfc7a97b1824fcdfb738617d9a5450a20a22a0f, the HP iLO was listed for power control. In iLO fw versions less than 1.50, the iLO Kbd/Mouse become unresponsive once they are suspended. HP iLO fw versions 1.50+ correctly report that they don't support remote wakeup, which makes the rules moot in any case.
2012-10-23udev: add hardware database supportKay Sievers
2012-10-17timedatectl: introduce new command line client for timedatedLennart Poettering
Much like logind has a client in loginctl, and journald in journalctl introduce timedatectl, to change the system time (incl. RTC), timezones and related settings.
2012-10-11rules: Fix persistent input symlinks for interface 00Martin Pitt
Commits 5e9eb156c and 32567f8 introduced persistent symlinks for input devices with more than one interface. However, this does not ensure stability for the "default" interface, i. e. with interface number 00 or a nonexisting one. If a device with a higher interface number appears first, it'll claim the symlink name without an interface number, and the "interface 00" device won't get any. Fix this by creating the default symlink only for interface 00 or a nonexisting one, so that we properly partition the two cases over the two rules. https://launchpad.net/bugs/1057824
2012-10-09udev: support multiple entries for ENV{SYSTEMD_ALIAS} and ENV{SYSTEM_WANTS}Kay Sievers
2012-09-24rules: only mark MD disks, not partitions, with SYSTEMD_READY=0Kay Sievers
2012-09-17udev: add btrfs supportKay Sievers
All "btrfs" file systems will be registered with the kernel when they show up. Incomplete multi-device volumes will set SYSTEMD_READY=0, to prevent access until the volume is complete and fully registered.
2012-07-3099-systemd.rules.in: ignore nbd in the "add" ueventHarald Hoyer
2012-07-30rules/99-systemd.rules.in: ENV{SYSTEMD_READY}="0" for incomplete mdHarald Hoyer
2012-07-24rules: avoid mounting raid devices too earlyMichal Schmidt
/dev/md0 appears as soon as the first component of the raid array is added by incremental assembly rules. This is too early for systemd to attempt to mount the device. The device should be considered plugged after the raid array becomes active. https://bugzilla.redhat.com/show_bug.cgi?id=767561
2012-07-14rules: fix typo in 42-usb-hid-pm.rulesKay Sievers
<arjan> can you open the 42-usb-hid-pm.rules file <arjan> and go to line 46 <arjan> and tell me why ATTR{idProduct}="0002" only has one = and not two (e.g. == ) ? <kay> arjan: yep <kay> arjan: bug
2012-05-27rules: Limit USB autosuspend on USB HID devicesMatthew Garrett
Some USB ports on external hubs may be reported as "fixed". We only want to auto-enable this on ports that are internal to the machine, so check the parent state as well.
2012-04-15udev: update some rulesKay Sievers
2012-04-14udev: trivial gtk-doc updateKay Sievers
2012-04-14udev: move all unconditionally installed rules to rules/Kay Sievers
2012-04-12getty: VC devices are always available, we don't need to wait until they show upLennart Poettering
2012-04-12relicense to LGPLv2.1 (with exceptions)Lennart Poettering
We finally got the OK from all contributors with non-trivial commits to relicense systemd from GPL2+ to LGPL2.1+. Some udev bits continue to be GPL2+ for now, but we are looking into relicensing them too, to allow free copy/paste of all code within systemd. The bits that used to be MIT continue to be MIT. The big benefit of the relicensing is that closed source code may now link against libsystemd-login.so and friends.
2012-04-09udev: convert 'uaccess' to a builtinKay Sievers
2012-04-04move imported udev into placeKay Sievers