Skip to content

RFC Introduce global.bootm.root_dev env var for booting via PARTUUID

Robert Karszniewicz barebox 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest3 patches 2 repliesIn review
  2. v1 RFC4 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- renamed env var s/root/root_dev/
- used filesystem-agnostic approach (root_dev now takes a /dev/ instead of a mounted partition)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3bootm: add env var root_devcommon/bootm.c include/bootm.h+5 -10 replies
2/3globalvar: add bootm.root_devcommon/bootm.c+1 -00 replies
3/3bootm: handle global.bootm.root_devcommon/bootm.c+12 -12 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [RFC PATCH v2 0/3] Introduce global.bootm.root_dev env var for booting via PARTUUID

This patch introduces a new env var which specifies which device is the rootfs device to be used in Linux, passed to Linux via bootargs, identified by the rootfs partition's PARTUUID.

global.bootm.root_dev supplements global.bootm.appendroot, in that it overrides appendroot's naïve default, which picks the partition that the kernel resides on (global.bootm.image).

Example:
detect mmc2
global.bootm.image='/mnt/mmc2.0/zImage'
global.bootm.appendroot=1
global.bootm.root_dev=/dev/mmc2.1
boot mmc

For proper patch, I would squash all commits.

Changes from v1:
- renamed env var s/root/root_dev/
- used filesystem-agnostic approach (root_dev now takes a /dev/ instead of a mounted partition)

Robert Karszniewicz (3):
bootm: add env var root_dev
globalvar: add bootm.root_dev
bootm: handle global.bootm.root_dev

 common/bootm.c  | 18 ++++++++++++++++--
 include/bootm.h |  2 ++
 2 files changed, 18 insertions(+), 2 deletions(-)
Signature · 7 lines
2.7.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox