From 9eb0eccb1116aa4b90d8bd2b0d19c05512005968 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Sun, 21 Apr 2013 23:08:28 +0200 Subject: [PATCH] Use the host's vesamenu.c32 as well When using syslinux and C32 modules it's important to use the C32 modules build with the same syslinux. This patch ensures that we use the host OS's vesamenu.c32, rather than the one shipped in the tarball. --- packages/tools/syslinux/files/create_livestick | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/tools/syslinux/files/create_livestick b/packages/tools/syslinux/files/create_livestick index 84b19c1fe8..08ee3c72a5 100755 --- a/packages/tools/syslinux/files/create_livestick +++ b/packages/tools/syslinux/files/create_livestick @@ -237,9 +237,16 @@ EOF cp README.md /tmp/usb_install cp RELEASE /tmp/usb_install - cp 3rdparty/syslinux/vesamenu.c32 /tmp/usb_install cp splash.png /tmp/usb_install + if [ -f /usr/lib/syslinux/vesamenu.c32 ]; then + cp /usr/lib/syslinux/vesamenu.c32 /tmp/usb_install + elif [ -f /usr/share/syslinux/vesamenu.c32 ]; then + cp /usr/share/syslinux/vesamenu.c32 /tmp/usb_install + else + echo "ERROR: Can't find syslinux's vesamenu.c32 on Host OS" >&2 + fi + # sync disk echo "syncing disk..." sync @@ -255,7 +262,7 @@ EOF elif [ -f /usr/share/syslinux/mbr.bin ]; then MBR="/usr/share/syslinux/mbr.bin" # example: fedora else - echo "Can't find syslinux's mbr.bin on Host OS" + echo "ERROR: Can't find syslinux's mbr.bin on Host OS" >&2 fi if [ -n "$MBR" ]; then