-Fix SLES path for mknb operation

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1774 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-06-26 14:35:44 +00:00
parent 22fa0512d3
commit 8e83d46a5a

View File

@ -106,11 +106,15 @@ sub process_request {
mkpath("$tftpdir/pxelinux.cfg");
chmod(0755,"$tftpdir/pxelinux.cfg");
if (! -r "$tftpdir/pxelinux.0") {
unless (-r "/usr/lib/syslinux/pxelinux.0") {
unless (-r "/usr/lib/syslinux/pxelinux.0" or -r "/usr/share/syslinux/pxelinux.0") {
$callback->({error=>["Unable to find pxelinux.0 "],errorcode=>[1]});
return;
}
copy("/usr/lib/syslinux/pxelinux.0","$tftpdir/pxelinux.0");
if (-r "/usr/lib/syslinux/pxelinux.0") {
copy("/usr/lib/syslinux/pxelinux.0","$tftpdir/pxelinux.0");
} else {
copy("/usr/share/syslinux/pxelinux.0","$tftpdir/pxelinux.0");
}
chmod(0644,"$tftpdir/pxelinux.0");
}
}