Presume a less likely to collide name for repositories gleaned during copycds process
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@900 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
3b10cb8cbf
commit
f51fe621a3
@ -17,7 +17,7 @@ sub localize_yumrepo {
|
||||
my $primaryxml;
|
||||
$installpfx = "$installroot/$distname/$arch/";
|
||||
mkpath("$installroot/postscripts/repos/$distname/$arch/");
|
||||
open($yumrepofile,">","$installroot/postscripts/repos/$distname/$arch/mediarepo.tmpl");
|
||||
open($yumrepofile,">","$installroot/postscripts/repos/$distname/$arch/local-repository.tmpl");
|
||||
find(\&check_tofix,$installpfx);
|
||||
close($yumrepofile);
|
||||
}
|
||||
@ -33,7 +33,7 @@ sub fix_directory {
|
||||
my $yumurl = File::Spec->catdir(@dircomps);
|
||||
$yumurl =~ s!$installpfx!http://#INSTSERVER#/install/$distname/$arch/!;
|
||||
my $reponame = $dircomps[$#dircomps];
|
||||
print $yumrepofile "[$distname-$arch-$reponame]\n";
|
||||
print $yumrepofile "[local-$distname-$arch-$reponame]\n";
|
||||
print $yumrepofile "name=xCAT configured yum repository for $distname/$arch/$reponame\n";
|
||||
print $yumrepofile "baseurl=$yumurl\n";
|
||||
print $yumrepofile "enabled=1\n";
|
||||
|
Loading…
Reference in New Issue
Block a user