1. Michał Górny
  2. eclean-kernel

Commits

Michał Górny  committed dca0c70

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

  • Participants
  • Parent commits 0889a2c
  • Branches master

Comments (0)

Files changed (1)

File ecleankernel/bootloader/grub.py

View file
  • Ignore whitespace
 
 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):