summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRobert Karszniewicz <r.karszniewicz@phytec.de>2020-08-10 14:20:08 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-08-20 09:05:26 +0200
commitd39a9871815405277a760307e58bd29973ef57b6 (patch)
treef5e08dc681b63c07f280670e59d97d01bec8446f /include
parent52dafe3eb5f2b5f5e695bb2a8485610b33285871 (diff)
downloadbarebox-d39a9871815405277a760307e58bd29973ef57b6.tar.gz
barebox-d39a9871815405277a760307e58bd29973ef57b6.tar.xz
bootm: add global.bootm.root_dev env var for booting via PARTUUID
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 Signed-off-by: Robert Karszniewicz <r.karszniewicz@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/bootm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/bootm.h b/include/bootm.h
index ef5148f31e..51e9b3d71a 100644
--- a/include/bootm.h
+++ b/include/bootm.h
@@ -18,6 +18,7 @@ struct bootm_data {
const char *initrd_file;
const char *oftree_file;
const char *tee_file;
+ const char *root_dev;
int verbose;
enum bootm_verify verify;
bool force;
@@ -25,6 +26,7 @@ struct bootm_data {
/*
* appendroot - if true, try to add a suitable root= Kernel option to
* mount the rootfs from the same device as the Kernel comes from.
+ * The default rootfs device can be overridden with root_dev.
*/
bool appendroot;
/*