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 f1c797c..5481368 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"