diff --git a/xCAT-server/lib/xcat/plugins/sles.pm b/xCAT-server/lib/xcat/plugins/sles.pm index ffc5332a0..dea6643b7 100644 --- a/xCAT-server/lib/xcat/plugins/sles.pm +++ b/xCAT-server/lib/xcat/plugins/sles.pm @@ -1631,6 +1631,7 @@ sub copycd #parse the disc info of the os media to get the distribution, arch of the os my $discnumber; my $darch; + my $linktwo = 0; if (-r $mntpath . "/content") { my $dinfo; @@ -1771,6 +1772,7 @@ sub copycd }; } elsif ($dsc =~ /SLE-15/ and $dsc =~ /Full/) { $discnumber = 1; + $linktwo = 1; unless ($distname) { if ($dsc =~ /SLE-15-SP(\d)/) { $distname = "sle15.$1"; @@ -1903,6 +1905,7 @@ sub copycd rmtree($ospkgpath); } mkpath("$ospkgpath"); + if ($linktwo) { symlink("$path/$discnumber", "$path/2"); } my $omask = umask 0022; umask $omask;