summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackware.com>2018-01-06 23:57:19 -0600
committerRobby Workman <rworkman@slackware.com>2018-01-07 00:12:05 -0600
commitcaf6a1ab9635b01908dffdfd4e55d52d186be447 (patch)
treeb6d96079a7cf95f3931d1ed745b584451ab22b15
parentbc4ea512ee5dbc2ccf999c8e5113d01f4f81081b (diff)
downloadslackpkg-caf6a1ab9635b01908dffdfd4e55d52d186be447.tar.xz
post-functions.sh: Don't offer to run lilo if initrd is in lilo.conf
-rw-r--r--files/post-functions.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/files/post-functions.sh b/files/post-functions.sh
index 787f97d..e4f456f 100644
--- a/files/post-functions.sh
+++ b/files/post-functions.sh
@@ -218,7 +218,14 @@ What do you want (K/O/R/P)?"
lookkernel() {
NEWKERNELMD5=$(md5sum /boot/vmlinuz 2>/dev/null)
if [ "$KERNELMD5" != "$NEWKERNELMD5" ]; then
- if [ -x /sbin/lilo ] && [ -r /etc/lilo.conf ]; then
+ if [ -x /sbin/lilo ] && [ -r /etc/lilo.conf ] && grep -q 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
+regenerate the initrd for the new kernel and handle any needed
+updates to your bootloader.
+"
+ elif [ -x /sbin/lilo ] && [ -r /etc/lilo.conf ] ; then
echo -e "\n
Your kernel image was updated. We highly recommend you run: lilo
Do you want slackpkg to run lilo now? (Y/n)"