Skip to content

Commit

Permalink
litd: Add missing syslinux modules (#1192137)
Browse files Browse the repository at this point in the history
Syslinux >= 6.02 needs additional modules to boot. Since we use the
version available on the host we need to make sure they are also copied
to the target device.
  • Loading branch information
bcl committed Feb 16, 2015
1 parent e6e734c commit 53fc37c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tools/livecd-iso-to-disk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1418,6 +1418,17 @@ if [ -z "$multi" ]; then
cp /usr/lib/syslinux/menu.c32 $TGTMNT/$SYSLINUXPATH/menu.c32
fi

# syslinux >= 6.02 requires also requires ldlinux.c32, libcom32.c32, libutil.c32
# since the version of syslinux being used is the one on the host they may or may not
# be available.
for f in ldlinux.c32 libcom32.c32 libutil.c32; do
if [ -f "/usr/share/syslinux/$f" ]; then
cp /usr/share/syslinux/$f $TGTMNT/$SYSLINUXPATH/$f
else
echo "Failed to find /usr/share/syslinux/$f, USB may not boot."
fi
done

if [ "$TGTFS" == "vfat" -o "$TGTFS" == "msdos" ]; then
# syslinux expects the config to be named syslinux.cfg
# and has to run with the file system unmounted
Expand Down

0 comments on commit 53fc37c

Please sign in to comment.