All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] rauc: target rauc needs unsquashfs at runtime
@ 2018-12-17 22:15 Trent Piepho
  2018-12-18 21:50 ` Thomas Petazzoni
  2018-12-30 21:42 ` Thomas Petazzoni
  0 siblings, 2 replies; 5+ messages in thread
From: Trent Piepho @ 2018-12-17 22:15 UTC (permalink / raw)
  To: buildroot

In order to provide info about a bundle file, e.g. running "rauc info
bundle.raucb", rauc needs to use the unsquashfs progam from the squashfs
package.

This was not documented until upstream commit 10c501c12752 ("docs:
integration: document need for 'unsquashfs' tool for 'rauc info'"), but
is already present in rauc.

Signed-off-by: Trent Piepho <tpiepho@impinj.com>
---
 package/rauc/Config.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/rauc/Config.in b/package/rauc/Config.in
index 6433b827d3..456f8f382c 100644
--- a/package/rauc/Config.in
+++ b/package/rauc/Config.in
@@ -6,6 +6,7 @@ config BR2_PACKAGE_RAUC
 	select BR2_PACKAGE_LIBGLIB2
 	select BR2_PACKAGE_OPENSSL
 	select BR2_PACKAGE_DBUS # run-time dependency
+	select BR2_PACKAGE_SQUASHFS # run-time dependency
 	help
 	  RAUC is the Robust Auto-Update Controller developed by
 	  Pengutronix. It supports updating embedded Linux
-- 
2.14.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] rauc: target rauc needs unsquashfs at runtime
  2018-12-17 22:15 [Buildroot] [PATCH] rauc: target rauc needs unsquashfs at runtime Trent Piepho
@ 2018-12-18 21:50 ` Thomas Petazzoni
  2018-12-18 22:55   ` Trent Piepho
  2018-12-30 21:42 ` Thomas Petazzoni
  1 sibling, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2018-12-18 21:50 UTC (permalink / raw)
  To: buildroot

Hello,

On Mon, 17 Dec 2018 22:15:19 +0000, Trent Piepho wrote:
> In order to provide info about a bundle file, e.g. running "rauc info
> bundle.raucb", rauc needs to use the unsquashfs progam from the squashfs
> package.
> 
> This was not documented until upstream commit 10c501c12752 ("docs:
> integration: document need for 'unsquashfs' tool for 'rauc info'"), but
> is already present in rauc.
> 
> Signed-off-by: Trent Piepho <tpiepho@impinj.com>
> ---
>  package/rauc/Config.in | 1 +
>  1 file changed, 1 insertion(+)

I am not familiar with rauc, so sorry for what is perhaps a silly
question: is squashfs needed in all cases, or just for a certain bundle
format, or certain use cases ?

I'm just trying to figure out if we really want this to be a mandatory
dependency, or rather not enforce it, and simply document that it might
be needed.

Thanks for your feedback,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] rauc: target rauc needs unsquashfs at runtime
  2018-12-18 21:50 ` Thomas Petazzoni
@ 2018-12-18 22:55   ` Trent Piepho
  0 siblings, 0 replies; 5+ messages in thread
From: Trent Piepho @ 2018-12-18 22:55 UTC (permalink / raw)
  To: buildroot

On Tue, 2018-12-18 at 22:50 +0100, Thomas Petazzoni wrote:
> Hello,
> 
> On Mon, 17 Dec 2018 22:15:19 +0000, Trent Piepho wrote:
> > In order to provide info about a bundle file, e.g. running "rauc info
> > bundle.raucb", rauc needs to use the unsquashfs progam from the squashfs
> > package.
> > 
> > This was not documented until upstream commit 10c501c12752 ("docs:
> > integration: document need for 'unsquashfs' tool for 'rauc info'"), but
> > is already present in rauc.
> > 
> > Signed-off-by: Trent Piepho <tpiepho@impinj.com>
> > ---
> >  package/rauc/Config.in | 1 +
> >  1 file changed, 1 insertion(+)
> 
> I am not familiar with rauc, so sorry for what is perhaps a silly
> question: is squashfs needed in all cases, or just for a certain bundle
> format, or certain use cases ?

The only bundle format they support uses squashfs.

To install a bundle on the target, rauc uses a loopback mount and the
kernel's squashfs support to get to the contents of the bundle.  But to
query a bundle file's metadata without installing it, it uses
unsquashfs.

So one could get by without unsquashfs if they were ok with certain
rauc features mysteriously not working.  There are no good error
messages when unsquashfs is not present.

Rauc doesn't have a feature to build without info support, so if one
doesn't have unsquashfs it really does build in a broken state.  You
can not use the broken parts, but that thinking could apply to just
about any runtime dependency.  It seems like pruning out non-optional
features is one of those things that shouldn't be a default.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] rauc: target rauc needs unsquashfs at runtime
  2018-12-17 22:15 [Buildroot] [PATCH] rauc: target rauc needs unsquashfs at runtime Trent Piepho
  2018-12-18 21:50 ` Thomas Petazzoni
@ 2018-12-30 21:42 ` Thomas Petazzoni
  2019-01-23 14:33   ` Peter Korsgaard
  1 sibling, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2018-12-30 21:42 UTC (permalink / raw)
  To: buildroot

Hello,

On Mon, 17 Dec 2018 22:15:19 +0000, Trent Piepho wrote:
> In order to provide info about a bundle file, e.g. running "rauc info
> bundle.raucb", rauc needs to use the unsquashfs progam from the squashfs
> package.
> 
> This was not documented until upstream commit 10c501c12752 ("docs:
> integration: document need for 'unsquashfs' tool for 'rauc info'"), but
> is already present in rauc.
> 
> Signed-off-by: Trent Piepho <tpiepho@impinj.com>
> ---
>  package/rauc/Config.in | 1 +
>  1 file changed, 1 insertion(+)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] rauc: target rauc needs unsquashfs at runtime
  2018-12-30 21:42 ` Thomas Petazzoni
@ 2019-01-23 14:33   ` Peter Korsgaard
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2019-01-23 14:33 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@bootlin.com> writes:

 > Hello,
 > On Mon, 17 Dec 2018 22:15:19 +0000, Trent Piepho wrote:
 >> In order to provide info about a bundle file, e.g. running "rauc info
 >> bundle.raucb", rauc needs to use the unsquashfs progam from the squashfs
 >> package.
 >> 
 >> This was not documented until upstream commit 10c501c12752 ("docs:
 >> integration: document need for 'unsquashfs' tool for 'rauc info'"), but
 >> is already present in rauc.
 >> 
 >> Signed-off-by: Trent Piepho <tpiepho@impinj.com>
 >> ---
 >> package/rauc/Config.in | 1 +
 >> 1 file changed, 1 insertion(+)

 > Applied to master, thanks.

Committed to 2018.02.x and 2018.11.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-01-23 14:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-17 22:15 [Buildroot] [PATCH] rauc: target rauc needs unsquashfs at runtime Trent Piepho
2018-12-18 21:50 ` Thomas Petazzoni
2018-12-18 22:55   ` Trent Piepho
2018-12-30 21:42 ` Thomas Petazzoni
2019-01-23 14:33   ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.