dracut/0059-dracut-functions.sh-inst_rule_programs-fixed-IMPORT-.patch
Harald Hoyer 12f6cc01aa dracut-022-63.git20120727
- fixed dracut-install bug if /var/tmp contains a symlink
- fixed some partx issues
2012-07-27 06:28:40 +02:00

26 lines
987 B
Diff

From 65d1a8a4aee600f7d5016382dd351bf9b835327f Mon Sep 17 00:00:00 2001
From: Harald Hoyer <harald@redhat.com>
Date: Thu, 26 Jul 2012 19:12:40 +0200
Subject: [PATCH] dracut-functions.sh:inst_rule_programs() fixed
IMPORT{program}
---
dracut-functions.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dracut-functions.sh b/dracut-functions.sh
index fb28bdc..49051fa 100755
--- a/dracut-functions.sh
+++ b/dracut-functions.sh
@@ -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