[Buildroot] [PATCH 1/2] rauc: select host-squashfs as a host dependency

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Nov 29 21:16:31 UTC 2017


Hello,

On Mon, 27 Nov 2017 19:27:22 -0800, Andrey Yurovsky wrote:
> The rauc host tool (used to generate update bundles) runs mksquashfs so
> host-squashfs is required for it to work at runtime.
> 
> Signed-off-by: Andrey Yurovsky <yurovsky at gmail.com>
> ---
>  package/rauc/Config.in.host | 1 +
>  package/rauc/rauc.mk        | 2 +-
>  2 files changed, 2 insertions(+), 1 deletion(-)

I've applied to master. Note however that it in fact doesn't really
solve the problem entirely, because $(HOST_DIR)/bin is not in the PATH,
so rauc still doesn't find mksquashfs:

$ ./output/host/bin/rauc --cert demo.cert.pem --key demo.key.pem bundle output/images/t/ test.raucb
input directory: output/images/t/
output bundle: test.raucb

(rauc:17776): rauc-WARNING **: failed to create bundle: Failed to start mksquashfs: Failed to execute child process ?mksquashfs? (No such file or directory)

But mksquashfs is in output/host/bin. Perhaps rauc should also try to
find mksquashfs from the same directory as rauc, before trying a
system-wide installed one?

Or we expect people to run "rauc bundle" from a post-image script, in
which case $(HOST_DIR)/bin is in the PATH ?

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list