Commits

Michał Górny committed bec1171

GRUB: support arbitrary args to _get_kernels().

Comments (0)

Files changed (1)

ecleankernel/bootloader/grub.py

 	kernel_re = r'^\s*kernel\s*(\([^)]+\))?(?P<path>\S+)'
 	def_path = '/boot/grub/grub.conf'
 
-	def _get_kernels(self, f):
+	def _get_kernels(self, *args, **kwargs):
 		debug = self._debug
 
-		for path in LILO._get_kernels(self, f):
+		for path in LILO._get_kernels(self, *args, **kwargs):
 			if os.path.relpath(path, '/boot').startswith('..'):
 				path = os.path.join('/boot', os.path.relpath(path, '/'))
 				debug.indent()