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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 04, 2022 at 04:18:09PM +0200, Marco Felsch wrote:
> 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@xxxxxxxxxxxxxx>
> ---
>  common/bootm.c | 2 ++
>  1 file changed, 2 insertions(+)

Applied, thanks

Sascha

> 
> 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
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux