From 39b391059afb444c302c8c1c6d1911d39ec234d1 Mon Sep 17 00:00:00 2001 From: mxi1 Date: Fri, 29 Jan 2010 09:05:42 +0000 Subject: [PATCH] -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 --- xCAT-server/lib/xcat/plugins/sles.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/sles.pm b/xCAT-server/lib/xcat/plugins/sles.pm index 0974173ea..0d38b551e 100644 --- a/xCAT-server/lib/xcat/plugins/sles.pm +++ b/xCAT-server/lib/xcat/plugins/sles.pm @@ -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/"); }