diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-05-05 12:15:46 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-05-05 12:30:06 +0200 |
commit | 18eb56c3c09f8d4a272d12500f74f21fa8457b8f (patch) | |
tree | 84263127a07e6e16b9c9cd274b163e6fd0c497b1 | |
parent | a8796773b0877847a93f645766a496f9480f9f73 (diff) | |
download | systemd-18eb56c3c09f8d4a272d12500f74f21fa8457b8f.tar.gz |
bootctl: support --graceful in is-installed
-rw-r--r-- | man/bootctl.xml | 3 | ||||
-rw-r--r-- | src/boot/bootctl.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/man/bootctl.xml b/man/bootctl.xml index 99cef4c00a..630dac7d48 100644 --- a/man/bootctl.xml +++ b/man/bootctl.xml @@ -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> diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index 058dac5381..32a0c40aa5 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; |