Commits

Michał Górny committed d6bdc33

Update the list of grub & grub2 configuration paths.

Fixes: https://bugs.gentoo.org/show_bug.cgi?id=485090

Comments (0)

Files changed (2)

ecleankernel/bootloader/grub.py

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

ecleankernel/bootloader/grub2.py

 class GRUB2(GRUB):
 	name = 'grub2'
 	kernel_re = r'^\s*linux\s*(\([^)]+\))?(?P<path>\S+)'
-	def_path = '/boot/grub2/grub.cfg'
+	def_path = ('/boot/grub/grub.cfg', '/boot/grub2/grub.cfg')
 
 	def _get_kernels(self, content):
 		self._autogen = content.startswith(grub2_autogen_header)