mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 05:12:30 +00:00 
			
		
		
		
	Workaround SuSE Full media difference
Profiles written around the initial SuSE15 concept of 'Installer' and 'Packages' expect Packages in 2. Workaround by symlinking a 2 when needed.
This commit is contained in:
		
				
					committed by
					
						
						Mark Gurevich
					
				
			
			
				
	
			
			
			
						parent
						
							2556112b24
						
					
				
				
					commit
					ecc26ed694
				
			@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user