diff --git a/xCAT-server-2.0/usr/lib/xcat/plugins/sles.pm b/xCAT-server-2.0/usr/lib/xcat/plugins/sles.pm index 739921ce1..eb515dec2 100644 --- a/xCAT-server-2.0/usr/lib/xcat/plugins/sles.pm +++ b/xCAT-server-2.0/usr/lib/xcat/plugins/sles.pm @@ -52,12 +52,25 @@ sub mkinstall { my $os = $ent->{os}; my $arch = $ent->{arch}; my $profile = $ent->{profile}; - unless (-r "/usr/share/xcat/install/sles/".$ent->{profile}.".tmpl") { + unless ( + -r "/usr/share/xcat/install/sles/$profile.tmpl" or + -r "/usr/share/xcat/install/sles/$profile.$arch.tmpl" or + -r "/usr/share/xcat/install/sles/$profile.$os.tmpl" or + -r "/usr/share/xcat/install/sles/$profile.$os.$arch.tmpl" + ) { $callback->({error=>["No AutoYaST template exists for ".$ent->{profile}],errorcode=>[1]}); next; } #Call the Template class to do substitution to produce a kickstart file in the autoinst dir - xCAT::Template->subvars("/usr/share/xcat/install/sles/".$ent->{profile}.".tmpl","/install/autoinst/".$node,$node); + if (-r "/usr/share/xcat/install/sles/$profile.$os.$arch.tmpl") { + xCAT::Template->subvars("/usr/share/xcat/install/sles/$profile.$os.$arch.tmpl","/install/autoinst/$node",$node); + } elsif (-r "/usr/share/xcat/install/sles/$profile.$arch.tmpl") { + xCAT::Template->subvars("/usr/share/xcat/install/sles/$profile.$arch.tmpl","/install/autoinst/$node",$node); + } elsif (-r "/usr/share/xcat/install/sles/$profile.$os.tmpl") { + xCAT::Template->subvars("/usr/share/xcat/install/sles/$profile.$os.tmpl","/install/autoinst/$node",$node); + } elsif (-r "/usr/share/xcat/install/sles/$profile.tmpl") { + xCAT::Template->subvars("/usr/share/xcat/install/sles/$profile.tmpl","/install/autoinst/$node",$node); + } mkpath "/install/postscripts/"; xCAT::Postage->writescript($node,"/install/postscripts/".$node); if (($arch =~ /x86/ and -r "/install/$os/$arch/1/boot/$arch/loader/linux" diff --git a/xCAT-server-2.0/usr/share/xcat/install/sles/compute.ppc64.tmpl b/xCAT-server-2.0/usr/share/xcat/install/sles/compute.ppc64.tmpl new file mode 100644 index 000000000..324db3ae1 --- /dev/null +++ b/xCAT-server-2.0/usr/share/xcat/install/sles/compute.ppc64.tmpl @@ -0,0 +1,86 @@ + + + + + + true + true + + false + false + mbr + + + + GMT + #TABLE:site:key=timezone:value# + + + english-us + + en_US + + false + false + false + true + + + non + + + + + /dev/sda + true + all + + + + + base-64bit + base + x11 + + + xntp + rsync + + + + + + + root + #CRYPT:passwd:key=system,username=root:password# + true + + + + + + + true + true + local + linux + + + + dhcp + eth0 + onboot + + + + false + + + + + #INCLUDE:../scripts/pre.sles# + #INCLUDE:../scripts/chroot.sles# + #INCLUDE:../scripts/post.sles# + + + diff --git a/xCAT-server-2.0/usr/share/xcat/install/sles/compute.tmpl b/xCAT-server-2.0/usr/share/xcat/install/sles/compute.tmpl index ad15d6cfe..0c236fd9d 100644 --- a/xCAT-server-2.0/usr/share/xcat/install/sles/compute.tmpl +++ b/xCAT-server-2.0/usr/share/xcat/install/sles/compute.tmpl @@ -34,43 +34,12 @@ /dev/sda true all - - - ext2 - /boot - 131 - 1 - 50MB - - - swap - 2 - auto - - - ext3 - /var - 131 - 3 - 2GB - - - ext3 - / - 131 - 4 - max - - base - base-32bit - 32bit - x11-32bit - x11 + x11 xntp