From 12d06bac9b22b11d8a322dfea4bdb50b106c254f Mon Sep 17 00:00:00 2001 From: Kyle Fuller Date: Fri, 5 Aug 2011 20:22:58 +0100 Subject: Move udev rules from /etc/udev to /lib/udev This change moves the default install location for the zfs udev rules from /etc/udev/ to /lib/udev/. The correct convention is for rules provided by a package to be installed in /lib/udev/. The /etc/udev/ directory is reserved for custom rules or local overrides. Additionally, this patch cleans up some abuse of the bindir install location by adding a udevdir and udevruledir install directories. This allows us to revert to the default bin install location. The udev install directories can be set with the following new options. --with-udevdir=DIR install udev helpers [EPREFIX/lib/udev] --with-udevruledir=DIR install udev rules [UDEVDIR/rules.d] Signed-off-by: Brian Behlendorf Closes #356 --- dracut/90zfs/module-setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dracut/90zfs') diff --git a/dracut/90zfs/module-setup.sh b/dracut/90zfs/module-setup.sh index 6dd3d5c17..822f89988 100755 --- a/dracut/90zfs/module-setup.sh +++ b/dracut/90zfs/module-setup.sh @@ -29,8 +29,8 @@ installkernel() { install() { inst_rules "$moddir/90-zfs.rules" - inst_rules /etc/udev/rules.d/60-zpool.rules - inst_rules /etc/udev/rules.d/60-zvol.rules + inst_rules /lib/udev/rules.d/60-zpool.rules + inst_rules /lib/udev/rules.d/60-zvol.rules inst /etc/zfs/zdev.conf inst /etc/zfs/zpool.cache inst /etc/hostid -- cgit v1.2.3