Skip to contentSkip to conversation

Install udev rules to /lib/udev/rules.d

PATCH Applied Scott James Remnant 4 participants 4 messages Jan 7, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Install udev rules to /lib/udev/rules.d

udev now installs rules into /lib/udev/rules.d by default, leaving /etc/udev/rules.d for user rules and overrides only.

HAL should be updated to follow suit:

tools/linux/Makefile.am +1 -1
diff -Nur -x '*.orig' -x '*~' hal-0.5.12~rc1/tools/linux/Makefile.am hal-0.5.12~rc1.new/tools/linux/Makefile.am
@@ -1,6 +1,6 @@
 ## Process this file with automake to produce Makefile.in
 
-udevrulesdir = $(sysconfdir)/udev/rules.d
+udevrulesdir = /lib/udev/rules.d
 udevrules_DATA = 90-hal.rules
 
 
tools/linux/Makefile.in +1 -1
diff -Nur -x '*.orig' -x '*~' hal-0.5.12~rc1/tools/linux/Makefile.in hal-0.5.12~rc1.new/tools/linux/Makefile.in
@@ -212,7 +212,7 @@
 target_alias = @target_alias@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
-udevrulesdir = $(sysconfdir)/udev/rules.d
+udevrulesdir = /lib/udev/rules.d
 udevrules_DATA = 90-hal.rules
 AM_CPPFLAGS = \
 	-DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\" \

Scott

Signature · 2 lines
Scott James Remnant
[email protected]
Applied
#1 lore raw
Quoted 4 lines · Scott James Remnant

udev now installs rules into /lib/udev/rules.d by default, leaving /etc/udev/rules.d for user rules and overrides only.

HAL should be updated to follow suit:

Applied. Also bumped the udev requirement and used @ for the abstract socket.

Thanks,
Kay

#2 lore raw
In reply to Scott James Remnant

Hi Kay,

Quoted 6 lines
Quoted 4 lines

udev now installs rules into /lib/udev/rules.d by default, leaving /etc/udev/rules.d for user rules and overrides only.

HAL should be updated to follow suit:

Applied. Also bumped the udev requirement and used @ for the abstract socket.

do you expect an application to install its rules in /lib/udev/rules.d now. I was assuming this is for udev's own rules only?

Regards

Marcel

#3 lore raw
In reply to Scott James Remnant
Quoted 10 lines · On Wed, 07 Jan 2009 20:51:48 +0100 Marcel Holtmann <[email protected]> wrote:
Quoted 7 lines
Quoted 4 lines

udev now installs rules into /lib/udev/rules.d by default, leaving /etc/udev/rules.d for user rules and overrides only.

HAL should be updated to follow suit:

Applied. Also bumped the udev requirement and used @ for the abstract socket.

do you expect an application to install its rules in /lib/udev/rules.d now. I was assuming this is for udev's own rules only?

It's my understanding (and I say this with the hope/expectation that I'll be corrected if I'm wrong) that /lib/udev/rules.d/ is where *most* package rules should go -- basically, anything for which the sysadmin
should have no reason to edit. /etc/udev/rules.d/ would be for
system-specific rules and/or generated rules (e.g. persistent optical and network devices rules files, and other things that might change over the life of the system).

-RW