2013-04-03 02:04:14 +00:00
|
|
|
From 3688462730a97d4cc5644dab87aadf147d8c72f0 Mon Sep 17 00:00:00 2001
|
2013-04-02 06:11:58 +00:00
|
|
|
From: =?UTF-8?q?Amadeusz=20=C5=BBo=C5=82nowski?= <aidecoe@aidecoe.name>
|
|
|
|
Date: Sun, 6 Jan 2013 13:35:01 +0100
|
2013-04-03 02:04:14 +00:00
|
|
|
Subject: [PATCH 1/2] dracut-functions.sh: support for alternative udev dirs -
|
2013-04-02 06:11:58 +00:00
|
|
|
udevaltdirs
|
|
|
|
|
|
|
|
It is required for Gentoo which moves udev from / to /usr and supports
|
|
|
|
both /lib/udev and /usr/lib/udev for compatibility with other packages.
|
|
|
|
|
|
|
|
Credits go to Alexander Tsoy <alexander@tsoy.me>.
|
|
|
|
---
|
|
|
|
dracut-functions.sh | 9 +++++++++
|
|
|
|
1 file changed, 9 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/dracut-functions.sh b/dracut-functions.sh
|
2013-04-03 02:04:14 +00:00
|
|
|
index eba7412..d888f4c 100755
|
2013-04-02 06:11:58 +00:00
|
|
|
--- a/dracut-functions.sh
|
|
|
|
+++ b/dracut-functions.sh
|
2013-04-03 02:04:14 +00:00
|
|
|
@@ -961,6 +961,15 @@ inst_rules() {
|
2013-04-02 06:11:58 +00:00
|
|
|
inst_dir "$_target"
|
|
|
|
for _rule in "$@"; do
|
|
|
|
if [ "${_rule#/}" = "$_rule" ]; then
|
|
|
|
+ for r in ${udevaltdirs}; do
|
|
|
|
+ [[ "$r" = "${udevdir}" ]] && continue
|
|
|
|
+ if [[ -f $r/rules.d/$_rule ]]; then
|
|
|
|
+ _found="$r/rules.d/$_rule"
|
|
|
|
+ inst_rule_programs "$_found"
|
|
|
|
+ inst_rule_group_owner "$_found"
|
|
|
|
+ inst_simple "$_found" "${udevdir}/rules.d/${_found##*/}"
|
|
|
|
+ fi
|
|
|
|
+ done
|
|
|
|
for r in ${udevdir}/rules.d /etc/udev/rules.d; do
|
|
|
|
if [[ -f $r/$_rule ]]; then
|
|
|
|
_found="$r/$_rule"
|
|
|
|
--
|
2013-04-03 02:04:14 +00:00
|
|
|
1.8.1.5
|
2013-04-02 06:11:58 +00:00
|
|
|
|