Skip to content

Commit

Permalink
Fix incorrect grub-mkconfig fallback logic
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Górny <mgorny@gentoo.org>
  • Loading branch information
mgorny committed Jun 30, 2020
1 parent 95f46dd commit b0cace4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ecleankernel/bootloader/grub2.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def postrm(self) -> None:
logging.debug('Calling grub2-mkconfig')
try:
subprocess.call(['grub-mkconfig', '-o', self.path])
return
except FileNotFoundError:
pass
else:
subprocess.call(['grub2-mkconfig', '-o', self.path])
subprocess.call(['grub2-mkconfig', '-o', self.path])

0 comments on commit b0cace4

Please sign in to comment.