Support more Syslinux module locations
authorTomáš Virtus <nechtom@gmail.com>
Mon, 3 Feb 2020 11:44:35 +0000 (12:44 +0100)
committerTomáš Virtus <nechtom@gmail.com>
Mon, 3 Feb 2020 12:11:51 +0000 (13:11 +0100)
commited5b633be961ef6b3651b1e4c7756538c032aa19
treeb002228fa2203b6e4eb997b9de70475ca2824dfb
parent25c3bf7f43e285c2a6ab997a44efd8d21a514207
Support more Syslinux module locations

The current hardcoded directory of Syslinux modules,
/usr/lib/syslinux/modules/bios/, does not exist on ArchLinux. Since
modules are copied with copy_if_exist(), the installer doesn't notify
user when Syslinux modules are missing on the host. Furthermore, when
modules in Grml image are incompatible with Syslinux binary on the host,
the bootloader fails to load graphical menu as described in this bug:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=943878

  Undef symbol FAIL: x86_init_fpu
  Failed to load libcom32.c32
  Failed to load COM32 file vesamenu.c32
  boot:

This change makes grml2usb look for more possible locations on the host
and adds --syslinux-libs option to add another location.
grml2usb