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

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