Blame SOURCES/0285-dracut-functions.sh-require_binaries-clarify-message.patch

18971c
From 1db0d1f78ba67e61ca3fafbec44f8bc79c75eb94 Mon Sep 17 00:00:00 2001
18971c
From: Harald Hoyer <harald@redhat.com>
18971c
Date: Tue, 20 May 2014 13:23:43 +0200
18971c
Subject: [PATCH] dracut-functions.sh:require_binaries() clarify message
18971c
18971c
The info message written by require_binaries() was a bit frighten to
18971c
users. So just be a little bit more verbose.
18971c
18971c
If you have ideas on how to improve the message for these "soft"
18971c
dependency modules, please submit patches.
18971c
18971c
(cherry picked from commit 0fa5dbedc5b222435f51f7460a81232ee120c4e1)
18971c
---
18971c
 dracut-functions.sh | 2 +-
18971c
 1 file changed, 1 insertion(+), 1 deletion(-)
18971c
18971c
diff --git a/dracut-functions.sh b/dracut-functions.sh
18971c
index 65ccebe5..585b6836 100755
18971c
--- a/dracut-functions.sh
18971c
+++ b/dracut-functions.sh
18971c
@@ -44,7 +44,7 @@ require_binaries() {
18971c
 
18971c
     for cmd in "$@"; do
18971c
         if ! find_binary "$cmd" &>/dev/null; then
18971c
-            dinfo "$_module_name: Could not find command '$cmd'!"
18971c
+            dinfo "dracut module '${_module_name#[0-9][0-9]}' will not be installed, because command '$cmd' could not be found!"
18971c
             ((_ret++))
18971c
         fi
18971c
     done