[PATCH] common: bootm: print error in case of appendroot failed

Marco Felsch m.felsch at pengutronix.de
Mon Jul 4 07:18:09 PDT 2022


Inform the user that appendroot failed instead of silently dropping the
request. This makes the debugging easier e.g. if nt-signature wasn't set
correctly.

Signed-off-by: Marco Felsch <m.felsch at pengutronix.de>
---
 common/bootm.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/bootm.c b/common/bootm.c
index 3c80e8bf94..1c722afc80 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -729,6 +729,8 @@ int bootm_boot(struct bootm_data *bootm_data)
 			globalvar_add_simple("linux.bootargs.bootm.appendroot",
 					     rootarg);
 			free(rootarg);
+		} else {
+			pr_err("Failed to append kernel cmdline parameter 'root='\n");
 		}
 	}
 
-- 
2.30.2




More information about the barebox mailing list