Skip to contentSkip to conversation

What GPL requirements are implied by publishing an ISO with GRUB binaries ?

DISCUSSION Thomas Schmitt 2 participants 4 messages Sep 10, 2017 – Sep 12, 2017

lore
Share & tools
lore
#0 lore raw

Hi,

i read on
http://wiki.osdev.org/Bare_Bones#Building_a_bootable_cdrom_image
a cumbersome interpretation of GRUB's GPL for the case of publishing an ISO with GRUB boot equipment. (See quote below.)

Is it really necessary to keep and publish the source package of the binary distro package if the ISO contains such distro binaries ? Is it really necessary to make and publish a GRUB release if binaries stem from source versions from git repo ?

Is there no easier way to comply to GPL by giving a sufficient id string of the used GRUB version ?
(Can GRUB binaries inside the ISO tell their exact git version ?
Would the GRUB project consider GPLv3 fulfilled for an unmodified version from git by just pointing to the newest (thus better) git version ?)

If a publisher of grub-mkrescue made ISOs needs to actively fulfill GPL demands, then this should be mentioned well visibly in
https://www.gnu.org/software/grub/manual/grub/html_node/Making-a-GRUB-bootable-CD_002dROM.html#Making-a-GRUB-bootable-CD_002dROM

Quote from wiki.osdev.org
------------------------------------------------------------------
Warning:
[...]
The GPL requires you publish the source code corresponding to the bootloader.

You need to get the exact source package corresponding to the GRUB package you have installed from your distribution, at the time grub-mkrescue is invoked (as distro packages are occasionally updated). You then need to publish that source code along with your ISO to satisfy the GPL.

Alternative, you can build GRUB from source code yourself. Clone the latest GRUB git from savannah (do not use their last release from 2012, it's severely out of date). Run autogen.sh, ./configure and make dist. [...] ensure its grub-mkrescue program is used to produce your iso. Then publish the GRUB tarball of your own making [...].
------------------------------------------------------------------
End of quote.

In general i'd be interested in correction proposals. Some statements are obviously outdated or wrong, like the one about the youngest release. Something more future-proof should be stated instead.

Have a nice day :)

Thomas

#1 lore raw

While I don't have specific quotes from the GPL to share in regards to this situation, it is my understanding that, yes, you are required to provide the source code used to build the compiled binary. This is because every person who receives the software has the right to the source used to build it.

I believe there is an exception for commonly used libraries and tools needed to build the code (e.g., if GCC is needed to build the code, you do not need to include the source to GCC as it is a common package). However, this most assuredly does not apply in this circumstance.

Where are you distributing your ISO? Perhaps you could just put the code on a public FTP site, and include its link in the Readme. Or, I believe you could charge a small fee to mail the software to the user on a disc, but no more than is absolutely necessary to comply with the source distribution requirement.

Hope this helps.

Quoted 58 lines · Thomas Schmitt

Hi,

i read on
http://wiki.osdev.org/Bare_Bones#Building_a_bootable_cdrom_image
a cumbersome interpretation of GRUB's GPL for the case of publishing an ISO with GRUB boot equipment. (See quote below.)

Is it really necessary to keep and publish the source package of the binary distro package if the ISO contains such distro binaries ? Is it really necessary to make and publish a GRUB release if binaries stem from source versions from git repo ?

Is there no easier way to comply to GPL by giving a sufficient id string of the used GRUB version ?
(Can GRUB binaries inside the ISO tell their exact git version ? Would the GRUB project consider GPLv3 fulfilled for an unmodified version from git by just pointing to the newest (thus better) git version ?)

If a publisher of grub-mkrescue made ISOs needs to actively fulfill GPL demands, then this should be mentioned well visibly in
https://www.gnu.org/software/grub/manual/grub/html_node/Making-a-GRUB-bootable-CD_002dROM.html#Making-a-GRUB-bootable-CD_002dROM

Quote from wiki.osdev.org
------------------------------------------------------------------
Warning:
[...]
The GPL requires you publish the source code corresponding to the bootloader.

You need to get the exact source package corresponding to the GRUB package you have installed from your distribution, at the time grub-mkrescue is invoked (as distro packages are occasionally updated). You then need to publish that source code along with your ISO to satisfy the GPL.

Alternative, you can build GRUB from source code yourself. Clone the latest GRUB git from savannah (do not use their last release from 2012, it's severely out of date). Run autogen.sh, ./configure and make dist. [...] ensure its grub-mkrescue program is used to produce your iso. Then publish the GRUB tarball of your own making [...].
------------------------------------------------------------------
End of quote.

In general i'd be interested in correction proposals. Some statements are obviously outdated or wrong, like the one about the youngest release. Something more future-proof should be stated instead.

Have a nice day :)

Thomas

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#2 lore raw

Hi,

Quoted 2 lines · SevenBits Tech

it is my understanding that, yes, you are required to provide the source code used to build the compiled binary.

Agreed. But normally it suffices to point to the place from where one got the published sources of the free software which one forwards. E.g. with xorriso releases, you can point to https://ftp.gnu.org/gnu/xorriso/
and propose to use the tarball with the matching version number.

The point of OSDev.org wiki is that GRUB is/was around in many versions which are not based on a GRUB release with tarball at a reliable public URL.

In the case that GRUB stems from a binary distro package, i'd say it suffices to tell the exact name of the package and the URL where the GRUB packages of that distro can be found. Nevertheless, this raises the question what to do if the distro vanishes or makes outdated versions of their packages unavailable.
(Interesting extra question: If you cease offering the binary, how long
are you obliged to still offer the old source ? Endlessly ?)

In the case of a git based version, one can point to
https://savannah.gnu.org/git/?group=grub
and give instructions how to obtain the corresponding source from a particular commit revision.

Since GRUB on ISO is likely to change hands, we have the situation that each of the GRUB users of this case has to be aware of the obligations by GPL, which do not apply to the use case of making the own computer bootable.

I think OSDev.org ideas are too rigid. Best would be if GRUB would help its ISO producing users to fulfill GPL in a mostly automatic way. At least with released GRUB versions, if it is not possible with versions pulled from git.

A clarification on GRUB's grub-mkrescue documentation page seems necessary.

Quoted 1 line

Where are you distributing your ISO?

It is not about my use cases but about my standard advice as author of xorriso to use grub-mkrescue when one starts with developing bootable ISOs. In general, the GPL makes no difference between giving a copy to a friend or making a business out of it.

Have a nice day :)

Thomas

#3 lore raw
In reply to SevenBits Tech

Hi,

Quoted 2 lines · Tom Davies

This might not be the best place to ask about legal issues for edge-case scenarios.

At least it would be the place to discuss what should be written in the docs.

The problem is quite specific to grub-mkrescue or people who equip computers with GRUB and then pass them on to other people.
If i had general questions about GPL, then i would ask fellow GNU maintainers in general.

My own GNU sub project would not invite the question because it does not need to spread software in order to do its job. It spreads ISOs instead.

An illustration of the special constraints with GRUB equipped media is this statement which is obviously intended for a person or organisation which permanently offers GPL'ed software:

Quoted 1 line

https://www.gnu.org/licenses/gpl-faq.html#SourceAndBinaryOnDifferentSites

"you must take care to make sure that the source remains available for as
long as you distribute the object code."

If i take this literally, then i can hand a GRUB equipped DVD to a friend, offer for the durance of the handover to provide the sources, and would then be free of further obligations.
(I do not have to ask Richard Stallman about his opinion to that theory.
The answer is easy to guess.)

As said, the normal way to fulfill GPL, if you do not modify the original code but only distribute binaries, is to simply tell the public source from where you got it and to show due dilligence with verifying that this source still exists as long as you offer the binary.

The problem is how to properly point to GRUB sources when redistributing GRUB binaries on bootable media. Especially when there is no official GRUB release to which one could point. (E.g. caused by the long release gap which ended not very long ago.)

Quoted 1 line

Note that the licence is not intended to make things difficult!

The FSF will not contradict if i state that ease of use is not the first priority of GPL, but that it is rather about rigidly ensuring the Four Essential Freedoms (https://www.gnu.org/philosophy/free-sw.en.html).

Just look at the situation with GPLv2-only (without "+") and LGPLv3. ( https://www.gnu.org/licenses/license-list.en.html#GPLv2 ) The official answer is: Urge the license givers of the GPLv2-only software to expand their license to GPLv2+, or else do not combine it with LGPLv3. No grandfather clause is offered by LGPLv3 for GPLv2-only despite the fact that LGPLv3 is compatible with many non-free licenses.

Quoted 1 line

https://www.gnu.org/licenses/gpl-howto.html

Urm. The headline is "How to use GNU licenses for your own software". Not the situation i am asking about.

It gives advise for the normal situation, though:

"(Optionally) make the program display a startup notice."

If the version id in the notice was significant enough to find the source version in GRUB's git, then there would be no problem with fulfilling GPL for binaries from unmodified source code.

Have a nice day :)

Thomas