Skip to content

Commit

Permalink
fix(dracut.sh): inform user about auto-selected compression method
Browse files Browse the repository at this point in the history
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.
mwilck authored and johannbg committed Nov 26, 2021

Verified

This commit was signed with the committer’s verified signature.
1 parent 586d3e7 commit 06d47de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dracut.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 06d47de

Please sign in to comment.