]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bootctl: support --graceful in is-installed
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 5 May 2022 10:15:46 +0000 (12:15 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 5 May 2022 10:30:06 +0000 (12:30 +0200)
man/bootctl.xml
src/boot/bootctl.c

index 99cef4c00aa6f37bf2055546cd2036ef33cd573a..630dac7d4857c30a0a3faeb9aa43f27d000e0aa7 100644 (file)
         <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>
index 058dac5381dabd0e93d57a4f6452392d53b28576..32a0c40aa56c673c88dab45c2beb5c9d5f243285 100644 (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;