Skip to contentSkip to conversation

Documentation: defaultenv-2: Document C-based init script

PATCH Applied Sohaib Mohamed 2 participants 2 messages Nov 10, 2025 – Nov 14, 2025 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: defaultenv-2: Document C-based init script

Add a note to clarify that the default init script is now implemented in C rather than as a shell script.

Fixes 90df2a955e3c ("defaultenv: Convert init script to C")
---
 Documentation/user/defaultenv-2.rst | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
Documentation/user/defaultenv-2.rst +4 -3
index 3715fd770d9d89d52172bcc1e7564d871977aa30..e5cb4a51bfad47e5022fb719d513a201519334e5 100644
@@ -50,9 +50,10 @@ and their respective included directories in ``defaultenv/Makefile``:
 /env/bin/init
 -------------
 
-This script is executed by the barebox startup code after initialization.
-In defaultenv-2, this script will define and set a number of global
-variables, followed by sourcing all of the scripts in ``/env/init/`` with:
+The default init script is now written in C. However, you can still define
+your own ``/env/bin/init`` script and it will take precedence over the
+built-in C implementation.
+Example for simple init script:
 
 .. code-block:: sh
 

---
base-commit: 0633a4db9d2351234b565b55978ce068b387eb2d
change-id: 20251110-fixup_docs-0566a0084735

Best regards,

Signature · 1 line
Sohaib Mohamed <[email protected]>