iso/live/hddimg images, cdrecord, burnia, the future
Hi,
oe-core has an ‘iso’ image type that creates ISO9660 images for booting from a CD/DVD. At the moment this is implemented using cdrtools (aka cdrecord) but this has “legal complications” meaning a number of mainstream distributions don’t use cdrtools [1], and the project is - generously speaking - only somewhat maintained as part of an uber-repository at https://codeberg.org/schilytools/schilytools. None of this is ideal.
Back when cdrtools moved to the CDDL and the distros decided this was not acceptable, Debian created a fork called cdrkit based on the last GPL release. This has no licensing issues but is now abandoned, notably the Debian packaging of cdrkit has a number of patches which are not upstreamed.
Against this background, the libburnia project has been quietly busy since ~2007. This is a fresh implementation with wrappers that behave like cdrtools, is GPLv2 licensed, and still actively maintained[2].
I’m proposing that we switch the ISO image type to using libburnia instead of cdrtools. I’ve verified that this is just a s/mkisofs/xorrisofs/ in image-live.bbclass and the resulting ISO is almost identical and boots successfully (in a qemu).
I’m _also_ proposing that we admit that ISO images and Yocto have very limited overlap, and instead of moving the libburnia recipes from meta-filesystems (libburn, libisofs, libisoburn) we just document that ISO generation requires meta-filesystems to be added. The big catch here is that live images are actually ISOs, but for this I believe that very few people actually use the live/hddimg images and this won’t be missed from core. My entirely unresearched guess is that some people use hddimg but they don’t need to: a traditional partitioned disk image can be written to a disk/stick/card and works just as well to boot, and the initramfs-based installer should work in that environment too.
Thoughts?
Ross
[1] https://en.wikipedia.org/wiki/Cdrtools#License_compatibility_controversy
[2] https://dev.lovelyhq.com/libburnia/libisoburn/commits/branch/master
Quoted 36 lines · Ross Burton via lists.openembedded.org
oe-core has an ‘iso’ image type that creates ISO9660 images for booting from a CD/DVD. At the moment this is implemented using cdrtools (aka cdrecord) but this has “legal complications” meaning a number of mainstream distributions don’t use cdrtools [1], and the project is - generously speaking - only somewhat maintained as part of an uber-repository at
https://codeberg.org/schilytools/schilytools. None of this is ideal.Back when cdrtools moved to the CDDL and the distros decided this was not acceptable, Debian created a fork called cdrkit based on the last GPL release. This has no licensing issues but is now abandoned, notably the Debian packaging of cdrkit has a number of patches which are not upstreamed.
Against this background, the libburnia project has been quietly busy since ~2007. This is a fresh implementation with wrappers that behave like cdrtools, is GPLv2 licensed, and still actively maintained[2].
I’m proposing that we switch the ISO image type to using libburnia instead of cdrtools. I’ve verified that this is just a s/mkisofs/xorrisofs/ in image-live.bbclass and the resulting ISO is almost identical and boots successfully (in a qemu).
I’m _also_ proposing that we admit that ISO images and Yocto have very limited overlap, and instead of moving the libburnia recipes from meta-filesystems (libburn, libisofs, libisoburn) we just document that ISO generation requires meta-filesystems to be added. The big catch here is that live images are actually ISOs, but for this I believe that very few people actually use the live/hddimg images and this won’t be missed from core. My entirely unresearched guess is that some people use hddimg but they don’t need to: a traditional partitioned disk image can be written to a disk/stick/card and works just as well to boot, and the initramfs- based installer should work in that environment too.
Quoted 1 line
Thoughts?
I'm fine with moving out iso but hddimg has proven to be used by more that you'd think. It also has fairly complex code in core which if we're keeping it, I'd like a way to test it...
Cheers,
Richard
Quoted 3 lines · Richard Purdie
I'm fine with moving out iso but hddimg has proven to be used by more that you'd think. It also has fairly complex code in core which if we're keeping it, I'd like a way to test it…
Unfortunately an hddimg is an ISO on a FAT, so they’re tangled together. hddimg are _horrible_...
Ross
Quoted 5 lines · Ross Burton via lists.openembedded.org
Quoted 3 lines
I'm fine with moving out iso but hddimg has proven to be used by more that you'd think. It also has fairly complex code in core which if we're keeping it, I'd like a way to test it…
Unfortunately an hddimg is an ISO on a FAT, so they’re tangled together. hddimg are _horrible_...
We can also do it with a two step deprecation process. I'm going to write a proposal for formalising that, as there are quite a few more things I want out of core, but the key to getting there is knowing who the users are and how they're using those things. The only way to find out is to give them deprecation warnings.
Alex