]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-functions.sh:require_binaries() clarify message
authorHarald Hoyer <harald@redhat.com>
Tue, 20 May 2014 11:23:43 +0000 (13:23 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 16 Jul 2015 07:43:05 +0000 (09:43 +0200)
The info message written by require_binaries() was a bit frighten to
users. So just be a little bit more verbose.

If you have ideas on how to improve the message for these "soft"
dependency modules, please submit patches.

(cherry picked from commit 0fa5dbedc5b222435f51f7460a81232ee120c4e1)

dracut-functions.sh

index 65ccebe5a0fa2d378c4c1d96a06a62931dbe8ad3..585b68365f54635425f5cfb5b16ecf0a2abfc56d 100755 (executable)
@@ -44,7 +44,7 @@ require_binaries() {
 
     for cmd in "$@"; do
         if ! find_binary "$cmd" &>/dev/null; then
-            dinfo "$_module_name: Could not find command '$cmd'!"
+            dinfo "dracut module '${_module_name#[0-9][0-9]}' will not be installed, because command '$cmd' could not be found!"
             ((_ret++))
         fi
     done