File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -1113,21 +1113,13 @@ function get_kernel_version_for_platform_from_apt() {
11131113	#  image for that particular platform. For instance, Ubuntu has a
11141114	#  meta-package for AWS called 'linux-image-aws', which depends on
11151115	#  package 'linux-image-4.15.0-1027-aws'. The latter is the linux image
1116- 	#  for kernel version '4.15.0-1027-aws'. We use this depenency  to figure
1116+ 	#  for kernel version '4.15.0-1027-aws'. We use this dependency  to figure
11171117	#  out the default kernel version for a given platform.
11181118	# 
1119- 	#  The "generic" platform is a special case, since we want to use the
1120- 	#  hwe kernel image instead of the regular generic image.
1121- 	# 
11221119	#  Note that while the default kernel is usually also the latest
11231120	#  available, it is not always the case.
11241121	# 
1125- 
1126- 	if  [[ " $platform " !=  generic ]] &&  [[ " $UBUNTU_DISTRIBUTION " ==  noble ]];  then 
1127- 		package=" linux-image-${platform} " 
1128- 	else 
1129- 		package=" linux-image-${platform} -hwe-24.04" 
1130- 	fi 
1122+   package=" linux-image-${platform} " 
11311123
11321124	if  [[ " $( apt-cache show --no-all-versions " $package " 
11331125		2> /dev/null |  grep Depends)  " =~  linux-image-([^,]* -${platform} ) ]];  then 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments