1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00

kernel-install: don't log each initrd on its own line in verbose mode

(cherry picked from commit 2f9f8b96d4)
This commit is contained in:
наб 2022-05-26 23:18:07 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent c6dd6afe02
commit e01f55dab5

View File

@ -321,7 +321,7 @@ case "$COMMAND" in
fi
for f in $PLUGINS; do
[ "$KERNEL_INSTALL_VERBOSE" -gt 0 ] && echo "+$f add $KERNEL_VERSION $ENTRY_DIR_ABS $*"
[ "$KERNEL_INSTALL_VERBOSE" -gt 0 ] && echo "+$f add $KERNEL_VERSION $ENTRY_DIR_ABS" "$@"
"$f" add "$KERNEL_VERSION" "$ENTRY_DIR_ABS" "$@"
err=$?
@ -355,8 +355,8 @@ case "$COMMAND" in
# Assert that ENTRY_DIR_ABS actually matches what we are printing here
[ "${ENTRY_DIR_ABS%/*}" = "$KERNEL_INSTALL_BOOT_ROOT/$ENTRY_TOKEN" ] || { echo "Assertion didn't pass." >&2; exit 1; }
;;
*)
echo "Error: unknown command '$COMMAND'" >&2
exit 1