summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2012-10-04 12:15:36 -0400
committerHarald Hoyer <harald@redhat.com>2012-10-04 12:15:36 -0400
commitda9c5181167d170cb14a45eaaf55bf8d45339557 (patch)
tree04829b9022f216e1dc9fc5ea3f58e15527d075aa
parent4d51eff05fe973bc5631a9ea2e7752192e7e1192 (diff)
downloaddracut-da9c5181167d170cb14a45eaaf55bf8d45339557.tar.gz
dracut-da9c5181167d170cb14a45eaaf55bf8d45339557.tar.bz2
dracut-da9c5181167d170cb14a45eaaf55bf8d45339557.zip
dracut-functions.sh:inst_rules_program() also recognize RUN+=
-rwxr-xr-xdracut-functions.sh4
-rw-r--r--modules.d/98systemd/dracut-emergency.service (renamed from modules.d/98systemd/emergency.service)0
2 files changed, 2 insertions, 2 deletions
diff --git a/dracut-functions.sh b/dracut-functions.sh
index 5825338a..a71013e2 100755
--- a/dracut-functions.sh
+++ b/dracut-functions.sh
@@ -837,8 +837,8 @@ inst_rule_programs() {
dracut_install "$_bin"
done
fi
- if grep -qE 'RUN==?"[^ "]+' "$1"; then
- for _prog in $(grep -E 'RUN==?"[^ "]+' "$1" | sed -r 's/.*RUN==?"([^ "]+).*/\1/'); do
+ if grep -qE 'RUN[+=]=?"[^ "]+' "$1"; then
+ for _prog in $(grep -E 'RUN[+=]=?"[^ "]+' "$1" | sed -r 's/.*RUN[+=]=?"([^ "]+).*/\1/'); do
if [ -x ${udevdir}/$_prog ]; then
_bin=${udevdir}/$_prog
else
diff --git a/modules.d/98systemd/emergency.service b/modules.d/98systemd/dracut-emergency.service
index 4ec78612..4ec78612 100644
--- a/modules.d/98systemd/emergency.service
+++ b/modules.d/98systemd/dracut-emergency.service