mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
bootctl: support --graceful in is-installed
This commit is contained in:
parent
a8796773b0
commit
18eb56c3c0
@ -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>
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user