Fix check for presence of pxelinux.0 file
authorMichael Prokop <mika@grml.org>
Wed, 11 Sep 2013 07:54:29 +0000 (09:54 +0200)
committerMichael Prokop <mika@grml.org>
Wed, 11 Sep 2013 07:54:30 +0000 (09:54 +0200)
This worked only on for build systems where /usr/lib/syslinux/pxelinux.0
was present on the build system itself. :)

grml-live

index a6dcafb..0d1c4cd 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -1435,7 +1435,7 @@ create_netbootpackage() {
 
   mkdir -p "$NETBOOT"
 
-  if ! [ -r "${CHROOT}/usr/lib/syslinux/pxelinux.0" ] ; then
+  if ! [ -r "${CHROOT_OUTPUT}/usr/lib/syslinux/pxelinux.0" ] ; then
     ewarn "File /usr/lib/syslinux/pxelinux.0 not found in build chroot." ; eend 0
     eindent
     einfo "Install syslinux[-common] package in chroot to get a netboot package."