From 18eb56c3c09f8d4a272d12500f74f21fa8457b8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 5 May 2022 12:15:46 +0200 Subject: [PATCH] bootctl: support --graceful in is-installed --- man/bootctl.xml | 3 ++- src/boot/bootctl.c | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/man/bootctl.xml b/man/bootctl.xml index 99cef4c00aa..630dac7d485 100644 --- a/man/bootctl.xml +++ b/man/bootctl.xml @@ -272,7 +272,8 @@ Ignore failure when the EFI System Partition cannot be found, when EFI variables cannot be written, or a different or newer boot loader is already installed. Currently only applies - to random seed and update operations. + to is-installed, update, and random-seed + verbs. diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index 058dac5381d..32a0c40aa56 100644 --- a/src/boot/bootctl.c +++ b/src/boot/bootctl.c @@ -2226,7 +2226,9 @@ static int verb_remove(int argc, char *argv[], void *userdata) { static int verb_is_installed(int argc, char *argv[], void *userdata) { int r; - r = acquire_esp(/* privileged_mode= */ false, /* graceful= */ false, NULL, NULL, NULL, NULL, NULL); + r = acquire_esp(/* privileged_mode= */ false, + /* graceful= */ arg_graceful, + NULL, NULL, NULL, NULL, NULL); if (r < 0) return r;