Lines 31-34
class GRUB2(GRUB):
Link Here
|
31 |
def _postrm(self): |
31 |
def _postrm(self): |
32 |
if self._autogen: |
32 |
if self._autogen: |
33 |
self._debug.print('Calling grub2-mkconfig') |
33 |
self._debug.print('Calling grub2-mkconfig') |
34 |
subprocess.call(['grub2-mkconfig', '-o', self.path]) |
34 |
try: |
|
|
35 |
subprocess.call(['grub-mkconfig', '-o', self.path]) |
36 |
except OSError as e: |
37 |
if e.errno != errno.ENOENT: |
38 |
raise |
39 |
else: |
40 |
subprocess.call(['grub2-mkconfig', '-o', self.path]) |
35 |
- |
|
|