]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-functions.sh: fixed inst_rules search path
authorHarald Hoyer <harald@redhat.com>
Thu, 3 Jan 2013 08:29:05 +0000 (09:29 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 3 Jan 2013 08:29:05 +0000 (09:29 +0100)
dracut-functions.sh

index f1c797c283cbda7d28d2bb5eec40af345fdc6263..548136882f459d43b6c356901902e322e8265067 100755 (executable)
@@ -900,7 +900,7 @@ inst_rules() {
     inst_dir "${udevdir}/rules.d"
     inst_dir "$_target"
     for _rule in "$@"; do
-        if [ "${rule#/}" = "$rule" ]; then
+        if [ "${_rule#/}" = "$_rule" ]; then
             for r in ${udevdir}/rules.d /etc/udev/rules.d; do
                 if [[ -f $r/$_rule ]]; then
                     _found="$r/$_rule"