From: Zbigniew Jędrzejewski-Szmek Date: Thu, 5 May 2022 10:28:32 +0000 (+0200) Subject: bootctl: add --quiet X-Git-Tag: v251-rc2~4^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F23273%2Fhead;p=thirdparty%2Fsystemd.git bootctl: add --quiet It's useful for installation scripts and suchlike. Raised in https://bugzilla.redhat.com/show_bug.cgi?id=2079784#c9. --- diff --git a/man/bootctl.xml b/man/bootctl.xml index 630dac7d485..1e6d537d0b0 100644 --- a/man/bootctl.xml +++ b/man/bootctl.xml @@ -276,6 +276,14 @@ verbs. + + + + + Suppress printing of the results of various commands and also the hints about ESP + being unavailable. + + Controls creation and deletion of the 0) { - puts("yes"); + if (!arg_quiet) + puts("yes"); return EXIT_SUCCESS; } else { - puts("no"); + if (!arg_quiet) + puts("no"); return EXIT_FAILURE; } }