only attempt to do grub if grub is installed
This commit is contained in:
parent
7ac103033c
commit
cd33f98b8b
@ -207,7 +207,7 @@ def pkg_upgrade():
|
||||
if line.startswith(' * '):
|
||||
log.warning(line)
|
||||
|
||||
if do_grub:
|
||||
if do_grub and os.path.exists(GRUB_MKCONFIG):
|
||||
keep_kernels = conf.getint('default', 'keep_kernels', fallback=4)
|
||||
if keep_kernels < 1:
|
||||
log.error('keep_kernels cannot be less than one; falling back to default')
|
||||
|
Loading…
Reference in New Issue
Block a user