]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-functions.sh:inst_rule_programs() fixed IMPORT{program}
authorHarald Hoyer <harald@redhat.com>
Thu, 26 Jul 2012 17:12:40 +0000 (19:12 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 26 Jul 2012 17:12:40 +0000 (19:12 +0200)
dracut-functions.sh

index fb28bdc57842978fa0087e7bea48e703f9ba071a..49051faa4078cba639054bfdb7961739dc80b9de 100755 (executable)
@@ -781,8 +781,8 @@ inst_rule_programs() {
             dracut_install "$_bin"
         done
     fi
-    if grep -qE 'PROGRAM==?"[^ "]+' "$1"; then
-        for _prog in $(grep -E 'IMPORT==?"[^ "]+' "$1" | sed -r 's/.*IMPORT==?"([^ "]+).*/\1/'); do
+    if grep -qE 'IMPORT\{program\}==?"[^ "]+' "$1"; then
+        for _prog in $(grep -E 'IMPORT\{program\}==?"[^ "]+' "$1" | sed -r 's/.*IMPORT\{program\}==?"([^ "]+).*/\1/'); do
             if [ -x ${udevdir}/$_prog ]; then
                 _bin=${udevdir}/$_prog
             else