From f9fcff5b25af01e00af56b6860360a2adf8e00ab Mon Sep 17 00:00:00 2001 From: Brandon Pribula Date: Sat, 26 Oct 2024 23:35:39 -0700 Subject: [PATCH] Prevent grep from matching comment in /etc/lilo.conf --- files/post-functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/post-functions.sh b/files/post-functions.sh index 0339e00..ac39c64 100644 --- a/files/post-functions.sh +++ b/files/post-functions.sh @@ -326,7 +326,7 @@ for you to deal with later" lookkernel() { NEWKERNELMD5=$(md5sum /boot/vmlinuz 2>/dev/null) if [ "$KERNELMD5" != "$NEWKERNELMD5" ]; then - if [ -x /sbin/lilo ] && [ -r /etc/lilo.conf ] && grep -q initrd /etc/lilo.conf ; then + if [ -x /sbin/lilo ] && [ -r /etc/lilo.conf ] && grep -q '^[[:space:]]*initrd=' /etc/lilo.conf ; then echo -e "\n Your kernel image was updated, and your /etc/lilo.conf indicates the use of an initrd for at least one of your kernels. Be sure to