[PATCH master 2/2] defaultenv: devboot: use rsinit.bind_modules to bind mount modules

Ahmad Fatoum a.fatoum at pengutronix.de
Thu Oct 15 04:07:01 PDT 2026


From: Ahmad Fatoum <a.fatoum at barebox.org>

The rsinit-modules snippet and the devboot documentation pass
rsinit.bind=/lib/modules on the kernel command line, but rsinit only
knows the rsinit.bind_modules flag and silently ignores unknown
options. The modules CPIO is thus unpacked into the initramfs, but
never bind mounted over the root file system's /lib/modules.

Switch both over to rsinit.bind_modules.

Link: https://github.com/pengutronix/rsinit#bind-mounting-kernel-modules-from-initrd
Fixes: 1003a9d70373 ("defaultenv: base: add new devboot script")
Fixes: fc586dda711c ("defaultenv: add optional devboot snippets under /env/devboot/")
Assisted-by: Claude:opus-5.5
Signed-off-by: Ahmad Fatoum <a.fatoum at barebox.org>
---
 Documentation/user/devboot.rst                         | 4 ++--
 defaultenv/defaultenv-2-devboot/devboot/rsinit-modules | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Documentation/user/devboot.rst b/Documentation/user/devboot.rst
index 28a2f65192d6..a55be7e305f2 100644
--- a/Documentation/user/devboot.rst
+++ b/Documentation/user/devboot.rst
@@ -173,7 +173,7 @@ kernel command line fragments:
   devboot_oftree=
   devboot_initrd=":afa-modules-arm64"
 
-  global linux.bootargs.devboot.rsinit="rsinit.bind=/lib/modules"
+  global linux.bootargs.devboot.rsinit="rsinit.bind_modules"
 
 With this script in place and ``global.user=afa``, ``global.hostname=rock3a``,
 running ``devboot mmc`` on the board expands to::
@@ -222,7 +222,7 @@ which the configuration script can source instead of spelling them out:
 ``/env/devboot/rsinit-modules``
   Appends the ``${global.user}-modules-${global.arch}`` CPIO archive to
   the initrd, as built by the Linux kernel ``make modules-cpio-pkg``
-  target, and adds ``rsinit.bind=/lib/modules`` to the kernel command
+  target, and adds ``rsinit.bind_modules`` to the kernel command
   line, so that the rsinit init in the initramfs bind mounts the modules
   over the root file system's ``/lib/modules``.
 
diff --git a/defaultenv/defaultenv-2-devboot/devboot/rsinit-modules b/defaultenv/defaultenv-2-devboot/devboot/rsinit-modules
index 3ada2dfeac39..b47d2e2739eb 100644
--- a/defaultenv/defaultenv-2-devboot/devboot/rsinit-modules
+++ b/defaultenv/defaultenv-2-devboot/devboot/rsinit-modules
@@ -1,4 +1,4 @@
 # Append the module CPIO archive and rsinit bind mount them over /lib/modules
 
 devboot_initrd="${devboot_initrd}:${global.user}-modules-${global.arch}"
-global linux.bootargs.devboot.rsinit="rsinit.bind=/lib/modules"
+global linux.bootargs.devboot.rsinit="rsinit.bind_modules"
-- 
2.47.3




More information about the barebox mailing list