bootctl: support --graceful in is-installed

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2022-05-05 12:15:46 +02:00
parent a8796773b0
commit 18eb56c3c0
2 changed files with 5 additions and 2 deletions

View file

@ -272,7 +272,8 @@
<term><option>--graceful</option></term>
<listitem><para>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.</para></listitem>
to <command>is-installed</command>, <command>update</command>, and <command>random-seed</command>
verbs.</para></listitem>
</varlistentry>
<varlistentry>

View file

@ -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;