dracut-functions.sh:inst_rules() do not install rules in CWD

master
Harald Hoyer 2013-10-04 13:32:15 +02:00
parent 49268028b9
commit 63330a89fc
1 changed files with 4 additions and 1 deletions

View File

@ -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"