LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-10-2017, 12:30 PM   #1
VisionIncision
Member
 
Registered: Dec 2011
Location: Wiltshire, UK
Distribution: Slackware, Gentoo
Posts: 130

Rep: Reputation: 3
ELILO and Kernel Upgrade


Hi all,
I just installed Slackware to my second SSD and everything went smoothly. So I did the usual process of first selecting a mirror and running
Code:
slackpkg update && slackpkg upgrade-all
After some time, I was prompted to update LILO to point to the new kernel(4.4.14). So I did that and rebooted, thinking that it would work for ELILO too.

However, when I now boot, I get no USB, no network etc and an error message:-

Code:
depmod: ERROR: could not open directory /lib/modules/4.4.14: No such file or directory
.

On BIOS systems with an MBR bootloader I have never had a problem. How does one handle kernel updates with EFI? Did I do something wrong/not do something, or is it just bad luck?

This is a freshly installed system.
 
Old 07-10-2017, 12:40 PM   #2
VisionIncision
Member
 
Registered: Dec 2011
Location: Wiltshire, UK
Distribution: Slackware, Gentoo
Posts: 130

Original Poster
Rep: Reputation: 3
UPDATE:

I realised that on my EFI partition, vmlinuz was still the old kernel. I literally copied the new kernel across from /boot with the live DVD and now everything is fine.

Still, I would like to know if there is a tool to do this after updates rather than manually.
 
Old 07-10-2017, 12:40 PM   #3
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

http://www.linuxquestions.org/questi...4/#post5729822

--
SeB
 
Old 07-10-2017, 07:03 PM   #4
laprjns
Member
 
Registered: Oct 2005
Location: Connecticut USA
Distribution: SalixOS
Posts: 206

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by VisionIncision View Post
Still, I would like to know if there is a tool to do this after updates rather than manually.
After updating, run eliloconfig as root, not lilo.
 
Old 07-10-2017, 07:43 PM   #5
laprjns
Member
 
Registered: Oct 2005
Location: Connecticut USA
Distribution: SalixOS
Posts: 206

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by VisionIncision View Post
After some time, I was prompted to update LILO to point to the new kernel(4.4.14). So I did that and rebooted, thinking that it would work for ELILO too.
This appears to be a bug or oversight in slackpkg. The "post-functions.sh" function used by slackpkg check to see if the kernel has been updates and if so suggest that you run lilo. It does not appear to consider UEFI systems.

Here is the "lookkernel" function include in the slackpkg library post-functions
Code:
lookkernel() {
	NEWKERNELMD5=$(md5sum /boot/vmlinuz 2>/dev/null)
	if [ "$KERNELMD5" != "$NEWKERNELMD5" ]; then
		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)"
			answer
			if [ "$ANSWER" != "n" ] && [ "$ANSWER" != "N" ]; then
				/sbin/lilo
			fi
		else
			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
kernel."
		fi
	fi
}
 
1 members found this post helpful.
Old 07-10-2017, 09:06 PM   #6
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by laprjns View Post
This appears to be a bug or oversight in slackpkg.
Nope. There is no such bug; it is just "the curse of the automated/advanced tools", graphical or not. In all its glory.

Long story short: the user expects from the damned application to think instead of him.

So, let's write several megabytes of code, to compute if the System booted with LILO, ELILO, SYSLINUX or GRUB, preferable with absolute precision on detection, just as the user to not have to think 5 seconds. Right?

You know what I consider to be the best way to change this code?

Leaving just a warning: "Bro, I updated your kernel right now. You may or may not need to update your bootloader as consequence of this action."

Putting in another way: WHY THE HECK a package manager/updater should mess with your bootloader? That's very UN-Slackware!

Last edited by Darth Vader; 07-11-2017 at 01:41 AM.
 
3 members found this post helpful.
Old 07-10-2017, 10:14 PM   #7
slackb0t
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware64-current on Thinkpad Carbon X1
Posts: 264

Rep: Reputation: 63
I think that answer is a bit extreme.. lol

But I do like this:

Quote:
"Bro, I updated your kernel right now. You may or may not need to update your bootloader as consequence of this action."
 
Old 07-11-2017, 05:15 AM   #8
laprjns
Member
 
Registered: Oct 2005
Location: Connecticut USA
Distribution: SalixOS
Posts: 206

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by Darth Vader View Post
Putting in another way: WHY THE HECK a package manager/updater should mess with your bootloader? That's very UN-Slackware!
I don't disagree with this and was surprise to find out that the suggestion to update lilo came from slackpkg and not from the kernel package's slack-desc or doinst.sh
 
  


Reply



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
[SOLVED] update kernel but how configure elilo? vencent Slackware 24 06-26-2020 06:16 AM
[SOLVED] elilo vs kernel and initrd on /boot wowbaggerHU Slackware - Installation 4 02-05-2017 05:57 PM
[SOLVED] ELILO and kernel upgrade cgorac Slackware 3 01-26-2016 12:59 AM
Kernel Not Starting in 14.1 with EFI/elilo Skazi Slackware 1 11-21-2013 10:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:16 PM.

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