Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 05-23-2013, 03:56 AM   #16
LQ Newbie
Registered: Jan 2007
Distribution: Slackware
Posts: 22

Rep: Reputation: 3

I might have forgotten about it long ago, but now that I manually alter my lilo.conf to add absolute hard drive partition locations based on the drive itself, and do things like use the generic kernel, it just has come with habit.
Old 05-23-2013, 04:20 AM   #17
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 866

Rep: Reputation: 264Reputation: 264Reputation: 264
I no longer have this problem.

Any kernel I have in lilo.conf has been copied to a subdir under /boot along with its initrd image.

The kernel images that Slackware installs are therefor not used directly and can be changed without causing grief.
Old 05-23-2013, 04:54 AM   #18
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,218

Rep: Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221
Originally Posted by rkelsen View Post
3 cheers for UEFI and eLILO!

Once the new kernel has been added to elilo.conf, there is nothing more to do.
You don't need UEFI for that, Slackware also ships with Syslinux (which includes Extlinux). You can do the same thing.

Once the new kernel has been added to extlinux.conf, there is nothing more to do.
Old 05-23-2013, 10:38 AM   #19
Registered: May 2008
Location: Republic of Texas
Posts: 300

Rep: Reputation: 53
He he - in my wayyy distant youth I used to forget it about every 2nd time - which is the reason why I never use it anymore ... legacy-grub for me, 3 times over!!
Old 05-23-2013, 11:43 AM   #20
Senior Member
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 4,662

Rep: Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540Reputation: 1540
I have written a modified version of the lookkernel function in slackpkg that checks if a generic kernel has been upgraded. It reminds that a new initrd is needed and will offer to run a mkinitrd command if there is a file /boot/lastmkinitrd.txt.
The file /boot/lastmkinitrd.txt was initially generated with:
/usr/share/mkinitrd/ > /boot/lastmkinitrd.txt
The modified function is in a file /usr/libexec/slackpkg/functions.d/ that needs to be set executable for the modified function to be sourced. The file name is started with q as it needs to be listed after the existing
lookkernel() {
        NEWKERNELMD5=$(md5sum /boot/vmlinuz 2>/dev/null)
        if [ "$KERNELMD5" != "$NEWKERNELMD5" ]; then
                if $(stat -c %N /boot/vmlinuz | grep -q generic); then
                       echo -e "\n
Your kernel image was updated to a generic kernel. You need a new initrd."
                        NEWKERNELVERSION=$(stat -c %N /boot/vmlinuz | sed -e "s/'$//" -e 's/.*-\([1-9]\)/\1/')
                        if [ -d /lib/modules/$KERNELVERSION ] && [ -f /boot/lastmkinitrd.txt ]; then
                               MKINITRD_CMD=$(sed 's/-k .\{5,13\} -/-k '$NEWKERNELVERSION' -/' /boot/lastmkinitrd.txt)
                               echo -e "\n
Do you want slackpkg to run the above command? (Y/n)"
                               if [ "$ANSWER" != "n" ] && [ "$ANSWER" != "N" ]; then
                                        $MKINITRD_CMD && echo "$MKINITRD_CMD" > /boot/lastmkinitrd.txt
                if [ -x /sbin/lilo ]; 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)"
                        if [ "$ANSWER" != "n" ] && [ "$ANSWER" != "N" ]; then
                        echo -e "\n
Your kernel image was updated and lilo is not found on your system.
You may need to adjust your boot manager(like GRUB) to boot appropriate
Now I get the lilo reminder _after_ dealing with the initrd!
1 members found this post helpful.
Old 05-23-2013, 03:27 PM   #21
Registered: Nov 2009
Distribution: Slackware64-current
Posts: 539
Blog Entries: 1

Rep: Reputation: 230Reputation: 230Reputation: 230
Originally Posted by brianL View Post
Me too. Anybody who hasn't?
Certainly not I. I can't count the number of times I upgraded a kernel (or just compiled a newer version on my own), and forgot to run lilo. Hello, series of 99's!

Painful memories, those. But you live and learn and go on.
Old 05-23-2013, 07:58 PM   #22
Senior Member
Registered: Sep 2004
Distribution: slackware
Posts: 2,023

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
Originally Posted by ruario View Post
You don't need UEFI for that
Actually, I had no choice. It's what came with the laptop. It doesn't have a 'legacy' mode.

I'm guessing it'll only get harder to find non-UEFI hardware from here on out.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reminder Command Salem Programming 10 09-23-2012 06:42 AM
[SOLVED] Reminder using cron MTK358 Linux - General 7 04-20-2010 02:36 PM
Reminder application General Linux - Software 1 05-14-2006 04:19 AM
ad reminder jeremy LQ Suggestions & Feedback 8 01-09-2003 04:02 PM
Installation reminder... sspiro Linux - Newbie 0 06-04-2002 06:33 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:15 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration