mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] Documentation: defaultenv-2: Document C-based init script
@ 2025-11-10 20:55 Sohaib Mohamed
  0 siblings, 0 replies; only message in thread
From: Sohaib Mohamed @ 2025-11-10 20:55 UTC (permalink / raw)
  To: barebox; +Cc: Sohaib Mohamed

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")
Signed-off-by: Sohaib Mohamed <sohaib.amhmd@gmail.com>
---
 Documentation/user/defaultenv-2.rst | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Documentation/user/defaultenv-2.rst b/Documentation/user/defaultenv-2.rst
index 3715fd770d9d89d52172bcc1e7564d871977aa30..e5cb4a51bfad47e5022fb719d513a201519334e5 100644
--- a/Documentation/user/defaultenv-2.rst
+++ b/Documentation/user/defaultenv-2.rst
@@ -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,
-- 
Sohaib Mohamed <sohaib.amhmd@gmail.com>




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-11-10 20:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-10 20:55 [PATCH] Documentation: defaultenv-2: Document C-based init script Sohaib Mohamed

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox