mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-03 21:02:34 +00:00 
			
		
		
		
	Merge pull request #6927 from gurevichmark/getinst_partition
Use 'find' command to consistently locate vmlinu* file on the disk partition
This commit is contained in:
		@@ -109,7 +109,7 @@ if [ -z "$install_disk" ]; then
 | 
			
		||||
            # If there is kernel file, add partition's disk into disk_array
 | 
			
		||||
            # It seems the kernel file in ubuntu and sles are named like vmlinux, but in RH it is called vmlinuz
 | 
			
		||||
            # To check both vmlinux and vmlinuz, use regular expression "vmlinu*" to match them
 | 
			
		||||
            for i in $ker_dir/vmlinu*; do
 | 
			
		||||
            for i in $(find $ker_dir -maxdepth 1 -name "vmlinu*"); do
 | 
			
		||||
                case $partition in
 | 
			
		||||
                    nvme*)
 | 
			
		||||
                        # Expected nvme partition format example: nvme0n1p1
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user