live-build/functions
Adrian Gibanel Lopez 9d1a983cc8 Added new multi bootloader helper functions
* Added: functions/bootloaders.sh . This file adds bootloader functions that are heavily used in efi scenarios where a bootloader can act as a first or an extra bootloader.

Since the introduction of the new switch:

--bootloaders

you can setup it like this:

--bootloaders=syslinux,grub-efi

.

This means that syslinux is the first bootloader and grub-efi is the extra bootloader.

* Added new bootloader functions: Check_Non_First_Bootloader and Check_Non_Extra_Bootloader.

These functions let each one of the bootloaders abort the build because
they cannot perform a role either as a first bootloader or as an extra bootloader.

* Added bootloader functions: Check_First_Bootloader_Role, Check_Extra_Bootloader_Role and Check_Any_Bootloader_Role

These functions let bootloaders to force their default role in a single line.

At the same time many binary bootloaders were rewritten to make use of the new bootloader role functions explained above.

These roles were enforced:

binary_grub-legacy : First bootloader
binary_grub-pc : Either first or extra bootloader
binary_syslinux : Either first or extra bootloader

If a bootloader is tried to be used in a role that it's not meant to be used then the build fails because that might lead to a non-bootable system.
2016-07-31 15:08:11 +02:00
..
aliases.sh Don't truncate files outside the build chroot. 2015-04-26 20:20:24 +02:00
architectures.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
arguments.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
bootloaders.sh Added new multi bootloader helper functions 2016-07-31 15:08:11 +02:00
breakpoints.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
cache.sh Updating stat calls to also give the right result in container setups, thanks to Kristian Klausen <klausenbusk@hotmail.com> (Closes: #789300). 2015-08-10 21:45:00 +02:00
chroot.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
chroot_bind_path.sh Making functions/chroot_bind_path.sh executable within the source tree (Closes: #777096). 2015-02-07 06:46:45 +01:00
color.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
common.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
conffile.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
configuration.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
cursor.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
defaults.sh Added new multi bootloader helper functions 2016-07-31 15:08:11 +02:00
echo.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
exit.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
help.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
lockfile.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
losetup.sh Include ext{3,4} journal size when calculating image size 2016-04-16 22:18:22 +02:00
man.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
packagelists.sh Correcting packagelist parsing when packages are listed with notation of a specific version (Closes: #775832). 2015-01-25 12:23:13 +01:00
packages.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
stagefile.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
usage.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00
wrapper.sh Updating year in copyright notices to 2015. 2015-01-04 20:05:44 +01:00