From: Martin Wilck Date: Fri, 19 Nov 2021 11:46:04 +0000 (+0100) Subject: fix(dracut.sh): inform user about auto-selected compression method X-Git-Tag: 056~60 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=06d47ded679231e1370cc655c1df408fc865baac;p=thirdparty%2Fdracut.git 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. --- diff --git a/dracut.sh b/dracut.sh index 62934bb95..387f5bbe0 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