From cd33f98b8befac5ccb1f6df34246669c387fffee Mon Sep 17 00:00:00 2001 From: Fredrik Eriksson Date: Fri, 22 Mar 2024 16:27:59 +0100 Subject: [PATCH] only attempt to do grub if grub is installed --- sau/gentoo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sau/gentoo.py b/sau/gentoo.py index 2fd878a..14017aa 100644 --- a/sau/gentoo.py +++ b/sau/gentoo.py @@ -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')