Add script to reinstall all kernels
This commit is contained in:
		
							parent
							
								
									ab5852d7d3
								
							
						
					
					
						commit
						1cbb1a5bd9
					
				|  | @ -0,0 +1,10 @@ | |||
| #!/usr/bin/env bash | ||||
| # | ||||
| # Calls kernel-install on all kernels found in /usr/lib/modules | ||||
| # | ||||
| # Run kernel install for all the installed kernels | ||||
| while read -r kernel; do | ||||
|     kernelversion=$(basename "${kernel%/vmlinuz}") | ||||
|     echo "Installing kernel ${kernelversion}" | ||||
|     kernel-install add ${kernelversion} ${kernel} | ||||
| done < <(find /usr/lib/modules -maxdepth 2 -type f -name vmlinuz) | ||||
		Loading…
	
		Reference in New Issue