From: Michael Prokop Date: Wed, 23 Sep 2015 19:59:11 +0000 (+0200) Subject: syslinux(-common) no longer ships pxelinux.0, included in pxelinux now X-Git-Tag: v0.101.2~1 X-Git-Url: http://git.grml.org/?p=grml-terminalserver.git;a=commitdiff_plain;h=d50dcea8226b9df4931b2bf52970dcc7f8083cc3 syslinux(-common) no longer ships pxelinux.0, included in pxelinux now pxelinux package is available since Debian/jessie, so support on either the pxelinux or older versions of syslinux-common (which used to ship the pxelinux.0 file). --- diff --git a/debian/control b/debian/control index 3fe4e8f..44c5ed7 100644 --- a/debian/control +++ b/debian/control @@ -20,7 +20,7 @@ Depends: atftpd (>=0.7.dfsg-1.2), ipcalc, isc-dhcp-server | dhcp3-server, nfs-kernel-server, - syslinux, + pxelinux | syslinux-common (<= 2:4.05+dfsg-6+deb7u1), ${misc:Depends} Description: terminalserver for grml to boot via PXE These packages provides all what's needed to boot diff --git a/grml-terminalserver b/grml-terminalserver index 1ce20ca..3fcfa37 100755 --- a/grml-terminalserver +++ b/grml-terminalserver @@ -209,7 +209,11 @@ function createTftpConf removeTftpConf execute "mkdir -p $TFTPD_DATA_DIR_/pxelinux.cfg" die - execute "install -m 644 /usr/lib/syslinux/pxelinux.0 $TFTPD_DATA_DIR_" die + if [ -r /usr/lib/PXELINUX/pxelinux.0 ] ; then + execute "install -m 644 /usr/lib/PXELINUX/pxelinux.0 $TFTPD_DATA_DIR_" die + else # older versions of syslinux-common (<= 2:4.05+dfsg-6+deb7u1): + execute "install -m 644 /usr/lib/syslinux/pxelinux.0 $TFTPD_DATA_DIR_" die + fi if [ -d "$MOUNT_POINT_"/boot/release ] ; then cp -r "$MOUNT_POINT_"/boot/release "$TFTPD_DATA_DIR_" fi