Commits

Michał Górny committed 9608901

GRUB2: call grub2-mkconfig only if the config was autogenerated.

  • Participants
  • Parent commits af1b8f9

Comments (0)

Files changed (1)

ecleankernel/bootloader/grub2.py

 		return GRUB._get_kernels(self, content)
 
 	def _postrm(self):
-		self._debug.print('Calling grub2-mkconfig')
-		subprocess.call(['grub2-mkconfig', '-o', self.path])
+		if self._autogen:
+			self._debug.print('Calling grub2-mkconfig')
+			subprocess.call(['grub2-mkconfig', '-o', self.path])