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

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