]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
kernel-install: don't log each initrd on its own line in verbose mode 23529/head
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Thu, 26 May 2022 21:18:07 +0000 (23:18 +0200)
committerнаб <nabijaczleweli@nabijaczleweli.xyz>
Thu, 26 May 2022 21:18:34 +0000 (23:18 +0200)
src/kernel-install/kernel-install.in

index 96c50ba6337f4d943caa2673112565f317525fa1..3da233ef6e53fdb033018159d91343eb4c4dfe7b 100755 (executable)
@@ -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