From 1a1db7480605feb3cb7d5a633d835a4aaaaf6e11 Mon Sep 17 00:00:00 2001 From: Matteo Rossini Date: Thu, 13 Jan 2022 11:53:02 +0100 Subject: [PATCH] Do not try to configure grub. Just re-configure it if it was already configured. --- src/zlookkernel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zlookkernel.sh b/src/zlookkernel.sh index cb3ed56..fb31c9e 100755 --- a/src/zlookkernel.sh +++ b/src/zlookkernel.sh @@ -121,7 +121,7 @@ lookkernel() { fi /sbin/lilo -v fi - elif [ -e /boot/grub ]&&[ -x /usr/sbin/grub-install ]; then + elif [ -e /boot/grub/grub.cfg ]&&[ -x /usr/sbin/grub-install ]; then echo -e "\nFound grub. Do you want to run now: /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg ? (Y/n)" [ ! "$PLUGIN_ZLOOKKERNEL_PROMPT" == "off" ] && answer if [ "$ANSWER" != "n" ] && [ "$ANSWER" != "N" ]; then