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.
master
Martin Wilck 2021-11-19 12:46:04 +01:00 committed by Jóhann B. Guðmundsson
parent 586d3e7664
commit 06d47ded67
1 changed files with 3 additions and 1 deletions

View File

@ -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