]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-functions.sh:inst_rules_program() also recognize RUN+=
authorHarald Hoyer <harald@redhat.com>
Thu, 4 Oct 2012 16:15:36 +0000 (12:15 -0400)
committerHarald Hoyer <harald@redhat.com>
Thu, 4 Oct 2012 16:15:36 +0000 (12:15 -0400)
dracut-functions.sh
modules.d/98systemd/dracut-emergency.service [moved from modules.d/98systemd/emergency.service with 100% similarity]

index 5825338a18b78ca4c5dce8708ecfb01508666449..a71013e28d922db6a2ebf073e7cc01f4a6201286 100755 (executable)
@@ -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