Feature #15292: Distribute a USB image
Unify the syslinux directory & config file name between ISO and installed USB stick
In the ISO we ship an
isolinux directory that contains an
isolinux.cfg file. And then the USB installers (ours and various 3rd party ones used e.g. on Windows) have to rename isolinux → syslinux, isolinux.cfg → syslinux.cfg, and to adjust the config files accordingly.
I'm told that
isolinux.bin would read that file just as well if it was called
syslinux.cfg, and we can give the (currently)
isolinux directory whatever name we want, as long as we tell xorriso where it is.
So it seems that we could ship a
syslinux directory in the ISO, with a
syslinux.cfg file in it. Then it's probably a matter of ensuring we pass the correct
-b option to
XORRISO_OPTIONS so live-build's
lb_binary_iso does the right thing.
This would allow all USB installers to drop quite a bit of code, and would bring us one step closer to having "intermediary" Tails sticks look more similar to those installed with Tails Installer. I also expect it would help ensure that 3rd party USB installers do the right thing, and they would simply have nothing to do except running our embedded
syslinux to have
#10 Updated by segfault about 1 year ago
#11 Updated by intrigeri about 1 year ago
I was wrong, it is not
syslinuxthat renames the files, we do it ourselves.
OK, so this confirms my "I believe we have to do something like this for #15292 unless we go directly to GRUB (#15806)": if we don't do what this ticket is about, we end up with a second instance of a workaround for a problem that does not exist (anymore), which is more useless code we have to maintain, which is the kind of technical debt I don't want us to increase. Now, frankly I'd much prefer seeing us spend time on switching to GRUB2 than on cleaning this up.