From: Harald Hoyer Date: Fri, 4 Oct 2013 11:32:15 +0000 (+0200) Subject: dracut-functions.sh:inst_rules() do not install rules in CWD X-Git-Tag: 034~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63330a89fc4edaa31e281e61cceb7816bc3500c1;p=thirdparty%2Fdracut.git dracut-functions.sh:inst_rules() do not install rules in CWD --- diff --git a/dracut-functions.sh b/dracut-functions.sh index cf33af56a..45e091187 100755 --- a/dracut-functions.sh +++ b/dracut-functions.sh @@ -882,7 +882,10 @@ inst_rules() { fi done fi - for r in '' ./ $dracutbasedir/rules.d/; do + for r in '' $dracutbasedir/rules.d/; do + # skip rules without an absolute path + [[ "${r}$_rule" != /* ]] && continue + if [[ -f ${r}$_rule ]]; then _found="${r}$_rule" inst_rule_programs "$_found"