calamares/src/modules/bootloader
Arnaud Ferraris a14968a646 [bootloader] Fix systemd-boot installation
When choosing `systemd-boot` as the bootloader, numerous problems
occurred:

- the kernel and initrd were not copied to the EFI System Partition,
and therefore could not be reached by the bootloader
- the fallback entry used the default initramfs image instead of the
fallback image

`systemd-boot` provides the `kernel-install` utility, which
automatically copies the kernel + initramfs to the EFI partition, and
creates the corresponding bootloader entry.

Unfortunately, `kernel-install` cannot be used here as the module is not
executed in a chroot. As setting up one only for running a single
command would be overkill, this patch re-creates what `kernel-install`
usually does:

- copy the kernel and initramfs to their own subdirectory at the root of
the EFI partition
- create the corresponding entry configuration file

To this end, the `systemd-boot` installation code in the `bootloader`
module has been largely refactored, including removing a few duplicate
LOCs.

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
2019-02-08 18:00:58 +01:00
..
bootloader.conf [modules] Minor documentation work on modules a-g 2018-06-26 05:47:23 -04:00
main.py [bootloader] Fix systemd-boot installation 2019-02-08 18:00:58 +01:00
module.desc adding new bootloader job 2014-10-12 13:45:02 -04:00
test.yaml bootloader/test.yaml: Define the shortProductName. 2014-11-16 15:05:00 +01:00