Page 1 of 1

Imagebakery - collect sources

Posted: 03 May 2020, 10:40
by KoenW
Hi everyone,

What is the purpose of the script collect-sources.sh in the imagebakery?

I run it and just puts a lot of repositories on my USB stick. I thought it was going to make further changes to the image file, but that doesn't seem to be the case.

On github it just says 'it is for GPL compliance'.

Can anyone explain?

Best regards
Koen

Re: Imagebakery - collect sources

Posted: 03 May 2020, 15:55
by lukas
The GNU General Public License mandates that we supply the entire source code of GPL-licensed packages on our image to our customers. On a physical medium, if necessary. (At a small charge.)

The vast majority of the packages on our image are Debian packages whose source code is readily available on the Internet. Of the packages that we've created ourselves, the source code is available in our GitHub repository. Thus, there's not much reason for customers to ask for source code. But we have to be prepared for the possibility.

The collect_sources.sh script generates that source collection from our image. We've made it available because some of our customers resell RevPis (e.g. as part of a machine). If their image is derived from ours, they can use the script to fulfill their GPL obligations.