-when setting up diskless/statelite sles11 system, yaboot also needs to be copied from the installation repository

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5082 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mxi1 2010-01-29 09:05:42 +00:00
parent 5fac183b2f
commit 39b391059a

View File

@ -48,6 +48,7 @@ sub mknetboot
my $ostab = xCAT::Table->new('nodetype');
my $sitetab = xCAT::Table->new('site');
my $linuximagetab;
my $pkgdir;
my $osimagetab;
my $installroot;
$installroot = "/install";
@ -147,6 +148,11 @@ sub mknetboot
if ($osver =~ /sles.*/)
{
$platform = "sles";
#TODO: should get the $pkgdir value from the linuximage table
$pkgdir = "$installroot/$osver/$arch";
if($osver =~ m/sles11/ and -r "$pkgdir/1/suseboot/yaboot") {
copy("$pkgdir/1/suseboot/yaboot", "/tftpboot/");
}
}elsif($osver =~ /suse.*/){
$platform = "sles";
}
@ -549,7 +555,7 @@ sub mkinstall
copy("$pkgdir/1/suseboot/inst64",
"/tftpboot/xcat/$os/$arch");
#special case for sles 11 and 11.x
if ( $os =~ /sles11/ and -r "$pkgdir/1/suseboot/yaboot")
if ( $os =~ m/sles11/ and -r "$pkgdir/1/suseboot/yaboot")
{
copy("$pkgdir/1/suseboot/yaboot", "/tftpboot/");
}