Have mknb create pxelinux.cfg directory as appropriate

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@600 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-02-27 19:06:18 +00:00
parent 6f471c9f7d
commit 403c05e92e

View File

@ -95,6 +95,8 @@ sub process_request {
}
my $cfgfile;
if ($arch =~ /x86/) {
mkpath("$tftpdir/pxelinux.cfg");
chmod(0755,"$tftpdir/pxelinux.cfg");
if (! -r "$tftpdir/pxelinux.0") {
unless (-r "/usr/lib/syslinux/pxelinux.0") {
$callback->({error=>["Unable to find pxelinux.0 "],errorcode=>[1]});