Skip to content

Commit 06d47de

Browse files
mwilckjohannbg
authored andcommitted
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.
1 parent 586d3e7 commit 06d47de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dracut.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2358,7 +2358,9 @@ if ! [[ $compress ]]; then
23582358
break
23592359
done
23602360
if [[ $compress == cat ]]; then
2361-
printf "%s\n" "dracut: no compression tool available. Initramfs image is going to be big." >&2
2361+
dwarn "dracut: no compression tool available. Initramfs image is going to be big."
2362+
else
2363+
dinfo "dracut: using auto-determined compression method '$compress'"
23622364
fi
23632365
fi
23642366

0 commit comments

Comments
 (0)