This patchset introduces the bootm.root_arg variable. A dynamic way of
setting the root argument in fit image boot contexts, defaulting to
root, resulting in root=/dev/... during kernel boot, but allowing for
overwrites like verity_fs=/dev/..., which can be parsed by the
initramfs, but will not be parsed by the kernel, resulting in robuster
secure boot contexts, where the kernel does not accidental due to
misconfiguration mount the rootfs instead of the initramfs, resulting in
a non-verified boot.

Fabian Pflug (4):
  block.h: renamed get_rootargs to get_root
  fs: split rootargs into root and options
  bootm: use new api to get kernel command line params
  bootm: introduce bootm.root_arg variable

 common/block.c         | 36 ++++++++++++++++++--------
 common/bootm.c         | 38 +++++++++++++++++-----------
 drivers/mci/mci-core.c |  4 +--
 fs/9p/vfs_super.c      |  6 ++---
 fs/fs.c                | 57 +++++++++++++++++++++++++++++++-----------
 fs/nfs.c               |  4 +--
 fs/squashfs/squashfs.c | 13 ++++++----
 fs/ubifs/ubifs.c       | 12 +++++----
 include/block.h        |  8 +++++-
 include/bootm.h        |  1 +
 include/fs.h           |  6 +++--
 11 files changed, 126 insertions(+), 59 deletions(-)

-- 
2.47.3


Reply via email to