diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2021-09-22 11:15:49 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-10-01 15:25:19 +0200 |
commit | 6abbd83d54c438f60a599ba01bdc97fbd4592dff (patch) | |
tree | 13bad7277ed22accebeadbc0e55cc7acb51f12bb /Documentation/user/reboot-mode.rst | |
parent | d30ae2826753a0471bc2ca38862f5512ac4f771b (diff) | |
download | barebox-6abbd83d54c438f60a599ba01bdc97fbd4592dff.tar.gz barebox-6abbd83d54c438f60a599ba01bdc97fbd4592dff.tar.xz |
Documentation: reboot-mode: add note about /env/bmode
This directory is an optional part of the defaultenv-2 and
is documented there. There should be a sentence about it in
the reboot-mode docs as well, because users can add it to
their environments as well to avoid doing if-else chains
in the init scripts.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20210922091549.23185-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Documentation/user/reboot-mode.rst')
-rw-r--r-- | Documentation/user/reboot-mode.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/user/reboot-mode.rst b/Documentation/user/reboot-mode.rst index 8717e39342..507d6feb01 100644 --- a/Documentation/user/reboot-mode.rst +++ b/Documentation/user/reboot-mode.rst @@ -44,7 +44,9 @@ the device. By convention, this should end with ``.reboot_mode``, e.g.:: Reboot mode providers have priorities. The provider with the highest priority has its parameters aliased as ``$global.system.reboot_mode.prev`` -and ``$global.system.reboot_mode.next``. +and ``$global.system.reboot_mode.next``. After executing the init scripts, +barebox startup will ``source /env/bmode/${global.system.reboot_mode.prev}`` +if available. Reset ===== |