Commits

Michał Górny committed dca0c70

grub: read kernels from 'module' lines as well (xen).

Comments (0)

Files changed (1)

ecleankernel/bootloader/grub.py

 
 class GRUB(LILO):
 	name = 'grub'
-	kernel_re = r'^\s*kernel\s*(\([^)]+\))?(?P<path>\S+)'
+	kernel_re = r'^\s*(kernel|module)\s*(\([^)]+\))?(?P<path>\S+)'
 	def_path = '/boot/grub/grub.conf'
 
 	def _get_kernels(self, *args, **kwargs):