From 14e6e444dd9eaa0db229548c31baecd75de4478e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 5 May 2022 12:28:32 +0200 Subject: [PATCH] bootctl: add --quiet It's useful for installation scripts and suchlike. Raised in https://bugzilla.redhat.com/show_bug.cgi?id=2079784#c9. --- man/bootctl.xml | 8 ++++++++ src/boot/bootctl.c | 28 +++++++++++++++++++++------- 2 files changed, 29 insertions(+), 7 deletions(-) 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; } } -- 2.47.3