bootctl: automatically set --graceful when running in chroot

Installing stuff in a chroot should not fail because efivars are
not available. When running in a container touching efivars is
completely disabled, but there are some cases (recovery) where
it is needed to touch them in a chroot, so don't disable them but
avoid failing the run instead.
This commit is contained in:
Luca Boccassi
2025-07-25 20:44:03 +01:00
parent a3eb0e99d3
commit bcc73cafdb
2 changed files with 9 additions and 2 deletions
+3 -2
View File
@@ -424,8 +424,9 @@
<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 <command>is-installed</command>, <command>update</command>, and <command>random-seed</command>
verbs.</para>
to <command>is-installed</command>, <command>update</command>, <command>random-seed</command> and
<command>install</command> verbs. Since version v258, it is implicitly enabled when running inside a
chroot.</para>
<xi:include href="version-info.xml" xpointer="v244"/></listitem>
</varlistentry>