From 06d47ded679231e1370cc655c1df408fc865baac Mon Sep 17 00:00:00 2001 From: Martin Wilck Date: Fri, 19 Nov 2021 12:46:04 +0100 Subject: [PATCH] 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. --- dracut.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dracut.sh b/dracut.sh index 62934bb955..387f5bbe0d 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