aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Wilck <mwilck@suse.com>2021-11-19 12:46:04 +0100
committerJóhann B. Guðmundsson <johannbg@gmail.com>2021-11-26 17:01:45 +0000
commit06d47ded679231e1370cc655c1df408fc865baac (patch)
tree84b71c8e4d8a0a0a8241275f3ca8c91b3b277c04
parent586d3e7664c00bf144becfa69dde2dbab8711d51 (diff)
downloaddracut-06d47ded679231e1370cc655c1df408fc865baac.tar.gz
fix(dracut.sh): inform user about auto-selected compression method
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.
-rwxr-xr-xdracut.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/dracut.sh b/dracut.sh
index 62934bb9..387f5bbe 100755
--- 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