Commit db2196ea authored by Tails developers's avatar Tails developers

Install the syslinux UEFI bootloader.

This requires to:

1. Copy files around for compatibility between live-build 2.x and syslinux
   3:6.03~pre1+dfsg-1. Ugly, yes.
2. Install isolinux and syslinux-common explicitly, since it is the ones that
   ship isolinux.bin and the *.c32 modules in syslinux 6.x packaging, and are
   merely recommends.
parent 40af6bfc
#!/bin/bash
set -e
# Including common functions
. "${LB_BASE:-/usr/share/live/build}"/scripts/build.sh
# Setting static variables
DESCRIPTION="$(Echo 'installing syslinux UEFI bootloader')"
HELP=""
USAGE="${PROGRAM}"
# Reading configuration files
Read_conffiles config/all config/bootstrap config/common config/binary
Set_defaults
# Safeguards
[ "${LB_BOOTLOADER}" = "syslinux" ] || exit 0
[ "${LB_ARCHITECTURE}" = "i386" ] || exit 0
# Seems like we'll have work to do
Echo_message "installing syslinux UEFI bootloader"
# Setting boot method specific variables
case "${LB_BINARY_IMAGES}" in
iso|iso-hybrid)
SYSLINUX_PATH="binary/isolinux"
;;
usb-hdd)
SYSLINUX_PATH="binary/syslinux"
;;
esac
# Main
mkdir -p binary/EFI/BOOT
cp chroot/usr/lib/SYSLINUX/efi64/syslinux.efi binary/EFI/BOOT/bootx64.efi
cp "$SYSLINUX_PATH"/* binary/EFI/BOOT/
cp -f chroot/usr/lib/syslinux/modules/efi64/* binary/EFI/BOOT/
#!/bin/sh
set -e
# Make syslinux 6.x packaging play well with live-build 2.x
cp -a /usr/lib/syslinux/modules/bios/ifcpu64.c32 \
/usr/lib/syslinux/modules/bios/vesamenu.c32 \
/usr/lib/ISOLINUX/isolinux.bin \
/usr/lib/syslinux/
......@@ -116,6 +116,8 @@ iceweasel-l10n-all
inkscape
ipheth-utils
iptables
# ships isolinux.bin in syslinux 6.x packaging
isolinux
ferm
keepassx
kexec-tools
......@@ -180,6 +182,8 @@ seahorse-plugins
secure-delete
simple-scan
sshfs
# ships the *.c32 modules in syslinux 6.x packaging
syslinux-common
system-config-printer
synaptic
torsocks
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment