]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(dracut.sh): inform user about auto-selected compression method
authorMartin Wilck <mwilck@suse.com>
Fri, 19 Nov 2021 11:46:04 +0000 (12:46 +0100)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Fri, 26 Nov 2021 17:01:45 +0000 (17:01 +0000)
If the compression method is unset, or had to be reset because of
missing dependencies, inform the user what's being used. Also,
replace the printf in the "cat" case with a dwarn.

dracut.sh

index 62934bb955f889e26f02170b15a21bf82754a296..387f5bbe0d0e02a9846d7698a8b6ccbc1eb76675 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -2358,7 +2358,9 @@ if ! [[ $compress ]]; then
         break
     done
     if [[ $compress == cat ]]; then
-        printf "%s\n" "dracut: no compression tool available. Initramfs image is going to be big." >&2
+        dwarn "dracut: no compression tool available. Initramfs image is going to be big."
+    else
+        dinfo "dracut: using auto-determined compression method '$compress'"
     fi
 fi