[PATCH 0/3] commands: findmnt: add option to print kernel root option

Ahmad Fatoum a.fatoum at pengutronix.de
Fri Apr 4 11:06:37 PDT 2025


There exists currently no way to view the kernel root option that
barebox would generate when instructed to via global.bootm.root_dev,
but without actually mounting the file system.

Add a new -K option that can print this. This can be useful in scripts
that want to fixup the root line, so it's interpreted by the rdinit, but
not by the kernel.

This applies on top of 
https://lore.barebox.org/barebox/20250401104806.3959859-1-a.fatoum@pengutronix.de/T/#t

Ahmad Fatoum (3):
  commands: devlookup: factor out cmd_export_val
  commands: findmnt: add support for exporting target as variable
  commands: findmnt: add option to print kernel root option

 commands/Kconfig     |  4 +++-
 commands/devlookup.c | 16 ++-----------
 commands/findmnt.c   | 56 +++++++++++++++++++++++++++++++++++++-------
 common/command.c     | 13 ++++++++++
 include/command.h    |  2 ++
 5 files changed, 68 insertions(+), 23 deletions(-)

-- 
2.39.5




More information about the barebox mailing list