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
Kristian Klausen
6b0777c53e
Fix typo in binary_syslinux
...
Closes : #818916
2016-05-26 21:57:19 +02:00
Adrian Gibanel Lopez
d515ae5684
Multi bootloader support
...
Note: OLDIFS use makes IFS to be reset to "" instead to it being unset.
Either we need to detect if old IFS was unset to unset it
or we need a proper way of setting it as a local variable.
Even more IFS it's not currently used in
Check_package (which it's called from: binary_hdd).
we should have a clean way of resetting/unsetting IFS when calling Check_package.
The other approach it's to explicitly define IFS with its default value in the
places inside live-build code where we implicitly suppose that it's going to have
its default value.
2015-08-29 23:56:41 +02:00
Daniel Baumann
421419c7fc
Getting rid of hard-coded release numbers and using /etc/os-release instead ( Closes : #790860 ).
...
Unfortunately VERSION_ID on testing/unstable is currently not included
in /etc/os-release, see #795124 .
2015-08-10 21:31:21 +02:00
Daniel Baumann
f93e83e351
Dropping automagics for casper.
...
Future live-build versions will still allow to use casper,
but its configuration will be done differently by hooks
in the config tree, rather than embedded and maintenance intensive
code in live-build itself.
2015-05-03 15:50:03 +02:00
Daniel Baumann
242aef5d83
Updating year in copyright notices to 2015.
2015-01-04 20:05:44 +01:00
Daniel Baumann
fdc9250bca
Changing package dependency checks within chroot to work outside as well.
2015-01-04 18:19:47 +01:00
Daniel Baumann
b5e99b5b14
Dropping support for wheezy.
2014-12-10 08:38:42 +01:00
Daniel Baumann
1f7f6dd88a
Cleaning up from python removal (LIVE_IMAGE_ARCHITECTURE).
2014-12-10 07:39:58 +01:00
Raphaël Hertzog
7b6dfd9d16
binary_syslinux: correct the path used to check if the bootloader is available.
...
The {iso,pxe,ext,sys}linux packages use /usr/lib/{ISO,PXE,EXT,SYS}LINUX/
directories and not /share/{ISO,PXE,EXT,SYS}LINUX/.
2014-12-10 06:26:55 +01:00
Daniel Baumann
2a829562c9
Adding second set of bootloader templates for wheezy.
2014-07-24 05:02:11 +02:00
Daniel Baumann
dd47358700
Unconditionally replacing bootloader symlinks with syslinux 6 from jessie, this will break building wheezy images (so we have to come up with something better than that prior upload).
2014-07-22 20:26:06 +02:00
Daniel Baumann
1606ed3c5a
Enabling syslinux 6 support for jessie as well.
2014-07-22 20:11:56 +02:00
Daniel Baumann
e8cbbb09d3
Enabling syslinux 6 support for sid.
2014-06-13 08:39:22 +02:00
Daniel Baumann
6bfcd3689a
Adding wheezy legacy handling for syslinux.
2014-05-07 05:27:23 +02:00
Simon McVittie
5d6574552f
Add support for making ext[234] or btrfs hdd images bootable with extlinux ( Closes : #745816 )
...
extlinux configuration for the bootable image is installed to
/boot/extlinux, matching the extlinux-install script in Debian.
From the configuration point of view it's still called "syslinux",
the same as the rest of the syslinux family (pxelinux, isolinux etc.)
2014-04-27 12:37:37 +02:00
Daniel Baumann
7a52186c1b
Only automatically do replacements within syslinux configs when they are not directories (as they can be in the pxelinux.cfg case), thanks to Antony Messerli <amesserl@rackspace.com> ( Closes : #745760 ).
2014-04-25 20:51:14 +02:00
Kiel Christofferson
9240aa3d3e
Only grab the latest version of kernel+initrd pair.
2014-02-21 12:56:43 -05:00
Kiel Christofferson
a934c03e06
Use LB_INITRAMFS case instead of assuming "live".
2014-02-21 12:56:43 -05:00
Daniel Baumann
eb336bb782
Updating copyright notices for 2014.
2014-02-08 17:47:24 +01:00
Daniel Baumann
6ceaaa1e93
Silencing copying of syslinux themes since users get always distracted about syslinux 6 files not being dereferenced (which can be totally ignored if you're using syslinux 4).
2013-11-26 08:03:57 +01:00
Daniel Baumann
d83a3d3c30
Updating rsvg calls in binary_syslinux for newer versions of librsvg2-bin, thanks to Roberto Carlos Morano <rcmorano@emergya.com> ( Closes : #728030 ).
2013-10-28 08:31:02 +01:00
Daniel Baumann
aa7939e085
Removing unused description variable in syslinux configs.
2013-09-18 11:43:49 +02:00
Daniel Baumann
5ecae6eb90
Updating hardcoded defaults for syslinux splash descriptions for progress-linux.
2013-09-06 17:18:48 +02:00
Daniel Baumann
1577d46064
Updating syslinux flavour detection for progress-linux.
2013-08-19 17:52:05 +02:00
Daniel Baumann
383d4d26b7
Expanding all variables in all syslinux configuration files, rathern than on some selected ones only.
2013-07-12 16:34:46 +02:00
Daniel Baumann
2bad1bd9c8
Sorting kernel versions in reverse order (newest first) in syslinux configurations in consistency with normal bootloader behaviours.
2013-05-13 12:57:35 +02:00
chals
36a44c849a
Changing how syslinux files are copied to make netboot images work properly.
2013-05-06 14:50:08 +02:00
Daniel Baumann
ff8e4ef6aa
Unifying append options in binary_syslinux when processing configuration files.
2013-05-06 14:50:07 +02:00
Daniel Baumann
f1410a0945
Replacing strings in all syslinux config files, not just certain hardcoded ones.
2013-05-06 14:50:07 +02:00
Daniel Baumann
1083985682
Correcting typo directory when dereferencing syslinux symlinks when building chrooted, thanks to Luigi Capriotti <l.capriotti@xbmc.org>.
2013-05-06 14:50:07 +02:00
Daniel Baumann
59ce459f40
Removing all references to my old email address.
2013-05-06 14:50:06 +02:00
Daniel Baumann
85e9887e0b
Converting splash.svg not just splash.svg.in files as syslinux bootsplashes.
2013-05-06 14:50:05 +02:00
Daniel Baumann
516cf8299f
Dropping theme package support, themes are either in the config tree or the embedded one from live-build is used.
2013-05-06 14:50:05 +02:00
Daniel Baumann
0290d0be6b
Updating binary_debian-installer for newer append replacement variables used in syslinux configs.
2013-05-06 14:50:05 +02:00
Daniel Baumann
2fb4009a8c
Updating syslinux configurations and handling for syslinux 5.
2013-05-06 14:50:05 +02:00
Daniel Baumann
62d94a4454
Updating year in all copyright notices.
2013-05-06 14:50:03 +02:00
Daniel Baumann
6499442212
Moving off binary image architecture into new config tree format.
2013-05-06 14:50:03 +02:00
Daniel Baumann
f5acab633c
Moving off binary image type into new config tree format.
2013-05-06 14:50:03 +02:00
Daniel Baumann
d1047e809a
Adding debian version 4.0~a1-1.
2013-05-06 14:48:46 +02:00
Daniel Baumann
da153c6526
Correcting typo directory when dereferencing syslinux symlinks when building chrooted, thanks to Luigi Capriotti <l.capriotti@xbmc.org>.
2013-04-09 05:52:09 +02:00
Daniel Baumann
f4c54334a4
Converting splash.svg not just splash.svg.in files as syslinux bootsplashes.
2013-02-09 00:04:20 +01:00
Daniel Baumann
36e9376517
Dropping theme package support, themes are either in the config tree or the embedded one from live-build is used.
2013-02-08 23:11:15 +01:00
Daniel Baumann
cfb9b190e1
Updating binary_debian-installer for newer append replacement variables used in syslinux configs.
2013-02-08 22:46:48 +01:00
Daniel Baumann
bc08ea0115
Updating syslinux configurations and handling for syslinux 5.
2013-02-08 21:40:28 +01:00
Daniel Baumann
a203b86fdd
Updating year in all copyright notices.
2013-01-01 00:13:01 +01:00
Daniel Baumann
2df809705d
Using hash rather than pipe as sed separator for writing boot parameters into bootloader configurations ( Closes : #694723 ).
2012-11-30 15:06:57 +01:00
Daniel Baumann
2caef33ea2
Renaming progress mode to progress-linux to match the used naming scheme.
2012-10-25 13:36:18 +02:00
Daniel Baumann
56e4085c60
Making failsafe boot parameters fully customizable like the normal ones.
2012-10-04 14:25:01 +02:00
Michal Suchanek
057d7439ac
Allowing to include multiple kernel images but menu entry is generated only for one.
2012-10-03 14:22:47 +02:00