--- a/ecleankernel/bootloader/grub2.py 2016-08-21 20:08:11.375201000 +0200 +++ a/ecleankernel/bootloader/grub2.py 2016-08-21 20:08:52.813851857 +0200 @@ -8,18 +8,18 @@ from .grub import GRUB -grub2_autogen_header = '''# +grub_autogen_header = '''# # DO NOT EDIT THIS FILE # # It is automatically generated by grub2-mkconfig''' class GRUB2(GRUB): - name = 'grub2' + name = 'grub' kernel_re = r'^\s*linux\s*(\([^)]+\))?(?P\S+)' - def_path = ('/boot/grub/grub.cfg', '/boot/grub2/grub.cfg') + def_path = ('/boot/grub/grub.cfg', '/boot/grub/grub.cfg') def _get_kernels(self, content): - self._autogen = content.startswith(grub2_autogen_header) + self._autogen = content.startswith(grub_autogen_header) if self._autogen: self._debug.print('Config is autogenerated, ignoring') @@ -29,5 +29,5 @@ def _postrm(self): if self._autogen: - self._debug.print('Calling grub2-mkconfig') - subprocess.call(['grub2-mkconfig', '-o', self.path]) + self._debug.print('Calling grub-mkconfig') + subprocess.call(['grub-mkconfig', '-o', self.path])