[elbe-devel] [PATCH] elbepack: properly log command of do and chroot

Benedikt Spranger b.spranger at linutronix.de
Thu Mar 7 09:34:34 CET 2024


Am Wed, 06 Mar 2024 14:35:40 +0100
schrieb Thomas Weißschuh <thomas.weissschuh at linutronix.de>:

> The functions do() and chroot() would only log the executed command.
> As finetuning <command>s are fed through /bin/sh only the /bin/sh
> command would be logged.
> This makes it very confusing for the users as they can't correlate the
> log output to the XML file.
> 
> Example:
> 
>   <fine-tuning>
>     <command>echo hello world</command>
>   </fine-tuning>
> 
>   # Before
>   [CMD] chroot /var/cache/elbe/fe9af34f-af71-4a62-b1ea-3ff131d8cc9a/target /bin/sh
>   hello world
> 
>   # After
>   [CMD] echo hello world
>   hello world
> 
> See https://github.com/Linutronix/elbe/issues/394
> 
> Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>

Reviewed-by: Benedikt Spranger <b.spranger at linutronix.de>


More information about the elbe-devel mailing list