From: наб Date: Thu, 26 May 2022 21:18:07 +0000 (+0200) Subject: kernel-install: don't log each initrd on its own line in verbose mode X-Git-Tag: v252-rc1~907^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2f9f8b96d41bc0787f53dcc01c1488fcdc735e9b;p=thirdparty%2Fsystemd.git kernel-install: don't log each initrd on its own line in verbose mode --- diff --git a/src/kernel-install/kernel-install.in b/src/kernel-install/kernel-install.in index 96c50ba6337..3da233ef6e5 100755 --- a/src/kernel-install/kernel-install.in +++ b/src/kernel-install/kernel-install.in @@ -324,7 +324,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=$? @@ -358,8 +358,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