-update diskless SLES11 environment, move ppc64 away and make the .pkglist, and .postinstall files adaptive for all <arch>s
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3123 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
16d45ba798
commit
21cb6eb931
@ -3,7 +3,7 @@ bash
|
||||
nfs-utils
|
||||
#stunnel
|
||||
dhcpcd
|
||||
kernel-ppc64
|
||||
kernel
|
||||
openssh
|
||||
#procps
|
||||
psmisc
|
@ -153,19 +153,22 @@ unless ($onlyinitrd) {
|
||||
}
|
||||
|
||||
#-- add custom repositories to the image
|
||||
if (-r "$pathtofiles/$profile.repolist") {
|
||||
$repolist = "$pathtofiles/$profile.repolist";
|
||||
if ( -r "$pathtofiles/$profile.$osver.$arch.repolist") {
|
||||
$repolist = "$pathtofiles/$profile.$osver.$arch.repolist";
|
||||
}elsif ( -r "$pathtofiles/$profile.$osver.repolist") {
|
||||
$repolist = "$pathtofiles/$profile.$osver.repolist";
|
||||
}elsif ( -r "$pathtofiles/$profile.repolist") {
|
||||
$repolist = "$pathtofiles/$profile.repolist";
|
||||
}
|
||||
|
||||
if ( -r "$repolist") {
|
||||
print "Reading custom repositories\n";
|
||||
open($repoconfig,"<","$repolist");
|
||||
while (<$repoconfig>) {
|
||||
chomp;
|
||||
next if /^\s*#/;
|
||||
($repotype,$repourl,$repoalias) = split m/\|/;
|
||||
if ($osver =~ /sles11/ && $osver_host == 11) {
|
||||
system("zypper -R $installroot/netboot/$osver/$arch/$profile/rootimg/ ar $repourl $repoalias");
|
||||
}else {
|
||||
system("zypper -R $installroot/netboot/$osver/$arch/$profile/rootimg/ sa -t $repotype $repourl $repoalias");
|
||||
}
|
||||
system("zypper -R $installroot/netboot/$osver/$arch/$profile/rootimg/ ar $repourl $repoalias");
|
||||
}
|
||||
}
|
||||
|
||||
@ -221,6 +224,13 @@ if (-x "$pathtofiles/$profile.$osver.$arch.postinstall") {
|
||||
exit 1;
|
||||
}
|
||||
}
|
||||
elsif (-x "$pathtofiles/$profile.$osver.postinstall") {
|
||||
my $rc = system("$pathtofiles/$profile.$osver.postinstall","$installroot/netboot/$osver/$arch/$profile/rootimg",$osver,$arch,$profile);
|
||||
if ($rc) {
|
||||
print "posinstall script failed\n";
|
||||
exit 1;
|
||||
}
|
||||
}
|
||||
elsif (-x "$pathtofiles/$profile.postinstall") {
|
||||
my $rc = system("$pathtofiles/$profile.postinstall","$installroot/netboot/$osver/$arch/$profile/rootimg",$osver,$arch,$profile);
|
||||
if ($rc) {
|
||||
|
@ -8,7 +8,3 @@
|
||||
#Type|URL|name
|
||||
#-- example:
|
||||
#Plaindir|file:/install/sles10sp2/x86_64/custom|custom
|
||||
|
||||
rpm-md|http://xcat.sourceforge.net/yum/xcat-dep/sles11/ppc64|xcat-dep
|
||||
rpm-md|http://xcat.sourceforge.net/yum/devel/core-snap|core-snap
|
||||
plaindir|file:///install/post/otherpkgs/sles11/ppc64|otherpkgs
|
||||
|
@ -33,8 +33,6 @@ END
|
||||
|
||||
|
||||
cat <<END >>$installroot/etc/hosts
|
||||
9.114.47.247 xcat_n02
|
||||
9.114.47.248 xcat_n03
|
||||
END
|
||||
|
||||
|
@ -0,0 +1,13 @@
|
||||
#--
|
||||
#-- This file contains list of custom repositories (directory with rpms).
|
||||
#-- Repositories will be added to the image before package installation.
|
||||
#-- This makes possible to automatically install (by defining in {profile}.pkglist)
|
||||
#-- packages that are not contained in standard distribution repository
|
||||
#--
|
||||
#-- File format:
|
||||
#Type|URL|name
|
||||
#-- example:
|
||||
#Plaindir|file:/install/sles10sp2/x86_64/custom|custom
|
||||
rpm-md|http://xcat.sourceforge.net/yum/xcat-dep/sles11/ppc64|xcat-dep
|
||||
rpm-md|http://xcat.sourceforge.net/yum/devel/core-snap|core-snap
|
||||
plaindir|file:///install/post/otherpkgs/sles11/ppc64|otherpkgs
|
Loading…
Reference in New Issue
Block a user