LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-27-2018, 04:51 PM   #1
rshepard
Member
 
Registered: Oct 2007
Location: Troutdale, Oregon
Distribution: Slackware
Posts: 435

Rep: Reputation: 28
14.2: new to elilo, checking procedure for kernel upgrades


This is the first motherboard that supports elilo. I see that in /boot/efi/EFI/Slackware/ are three files: elilo.conf, elilo.efi, and vmlinuz.

Am I correct in assuming that when I upgrade the stock 4.4.14 kernel to the latest 4.4.157 I do the following:

1) in /boot, run mkinitrd
2) cp (mv?) initrd.gz to /boot/efi/EFI/Slackware/
3) in /boot, re-link vmlinuz to vmlinuz-generic-4.4.157
4) cp vmlinuz to /boot/efi/EFI/Slackware
5) edit elilo.conf to add both image=initrd.gz and add a second stanzq pointing to /boot/vmlinuz-huge-4.4.157
 
Old 09-28-2018, 02:47 AM   #2
franzen
Member
 
Registered: Nov 2012
Distribution: slackware
Posts: 535

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
Quote:
Originally Posted by rshepard View Post
This is the first motherboard that supports elilo. I see that in /boot/efi/EFI/Slackware/ are three files: elilo.conf, elilo.efi, and vmlinuz.

Am I correct in assuming that when I upgrade the stock 4.4.14 kernel to the latest 4.4.157 I do the following:

1) in /boot, run mkinitrd
2) cp (mv?) initrd.gz to /boot/efi/EFI/Slackware/
3) in /boot, re-link vmlinuz to vmlinuz-generic-4.4.157
4) cp vmlinuz to /boot/efi/EFI/Slackware
5) edit elilo.conf to add both image=initrd.gz and add a second stanzq pointing to /boot/vmlinuz-huge-4.4.157
EDIT: I did that on -current, don't know what that does on 14.2

No.
I was using efi also the first time this week on two laptops. On the one machine that has a proper efi firmware, on a kernel update i did:
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -k NEWKERNELVERSION | /bin/bash
eliloconfig
and all went fine.

This uses the kernel where /boot/vmlinuz points to, which in my case is kernel-generic.

Last edited by franzen; 09-28-2018 at 02:53 AM.
 
Old 09-28-2018, 10:34 AM   #3
rshepard
Member
 
Registered: Oct 2007
Location: Troutdale, Oregon
Distribution: Slackware
Posts: 435

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by franzen View Post
EDIT: I did that on -current, don't know what that does on 14.2

No.
I was using efi also the first time this week on two laptops. On the one machine that has a proper efi firmware, on a kernel update i did:
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -k NEWKERNELVERSION | /bin/bash
eliloconfig
and all went fine.

This uses the kernel where /boot/vmlinuz points to, which in my case is kernel-generic.
Franzen,

I'm unclear on what you're telling me. You wrote that you used the four steps I listed on -current, then you write "no' to my applying them to 14.2?

When I asked a SBo package maintainer about running the mkinitrd shell script he told me to just use the regular command sequence; that's worked for him on his EFI-enabled systems.

This motherboard, and Asus Prime X470-Pro is designed to support UEFI and that's what Slackware is using when it boots.

Thanks,

Rich
 
Old 09-28-2018, 10:42 AM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by rshepard View Post
This is the first motherboard that supports elilo. I see that in /boot/efi/EFI/Slackware/ are three files: elilo.conf, elilo.efi, and vmlinuz.

Am I correct in assuming that when I upgrade the stock 4.4.14 kernel to the latest 4.4.157 I do the following:

1) in /boot, run mkinitrd
2) cp (mv?) initrd.gz to /boot/efi/EFI/Slackware/
3) in /boot, re-link vmlinuz to vmlinuz-generic-4.4.157
4) cp vmlinuz to /boot/efi/EFI/Slackware
5) edit elilo.conf to add both image=initrd.gz and add a second stanzq pointing to /boot/vmlinuz-huge-4.4.157
There is no need to relink vmlinuz in your /boot directory. That was used previously to keep your lilo.conf simple (it would just point to the symlink, which would then point to the main file and would be automatically updated when new kernels were installed).

Basically, you'll need to make sure that your initrd and kernel are both in the /boot/efi/EFI/Slackware directory (can be a cp or an mv -- I always do a cp to keep the original files in /boot/ for historical reasons... AFAIK, there's no technical reason to keep them there), then make sure your elilo.conf references the correct filenames. There's no equivalent of running lilo for elilo since the UEFI firmware can read the config file when booting.

If you do have two entries, elilo does not display a prompt like lilo did. You can press enter or wait for the timeout to select the default/first entry. You would need to press tab to view the other entries and then, I believe, you need to type the label you want and press enter to boot it.
 
Old 10-03-2018, 09:10 AM   #5
rshepard
Member
 
Registered: Oct 2007
Location: Troutdale, Oregon
Distribution: Slackware
Posts: 435

Original Poster
Rep: Reputation: 28
Thanks, both of you. Once I went through the upgrade from the distribution's 4.4.14 to the most current 4.4.157 the process became (ahem!) "intuitive."
 
  


Reply

Tags
14.2 64bit, elilo, kernel upgrade


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
ELILO and Kernel Upgrade VisionIncision Slackware 7 07-11-2017 05:15 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 08:34 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