El 18/01/16 a las 12:57, Michal Suchanek escribió:
Unless
the user requests two bootloaders that are incompatible the medium can
be created.
Ignoring bootloaders is not a good idea. If the user requested
something that is not possible the build should report an error and
stop.
Yeah, that it's hard to implement from the perspective of a single
bootloader script. So I decided not to implement it.
You could add an additional script or function named:
check_compatible_bootable_pairs (as you propose) but then you need to
maintain that fictional database each time a new bootloader gets in.
That's why I decide to avoid it using it.
What it's straight-forward to implement is one of the only-secondary
bootloaders finding themselves as a primary bootloader and outputting a
warning message. But, I'm not sure what to put there as a warning. Any
suggestion?
Unsupported bootloader combination or whatever.
It should not be a warning however. The script should avoid making
unbootable medium.
Thanks
Michal
I have implemented: Check_Primary_Bootloader_Role,
Check_Secondary_Bootloader_Role functions for avoiding non supported
bootloader combinations on:
https://github.com/adrian15/live-build/tree/efi_support_based_on_debian_cd_rebased
So that part is solved.
(I'll send a proper rebased set of patches in the future).
adrian15
--
Support free software. Donate to Super Grub Disk. Apoya el software
libre. Dona a Super Grub Disk. http://www.supergrubdisk.org/donate/