LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-02-2017, 09:38 AM   #1
vencent
LQ Newbie
 
Registered: Jun 2017
Posts: 21

Rep: Reputation: Disabled
Smile update kernel but how configure elilo?


As the title, I update the kernel(updatepkg). But at the end, the shell advise me to run lilo, but I use elilo. So how to change the default kernel to the updated kernel. Thx.
 
Old 07-02-2017, 09:57 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: Slackware®
Posts: 13,399
Blog Entries: 31

Rep: Reputation: 2576Reputation: 2576Reputation: 2576Reputation: 2576Reputation: 2576Reputation: 2576Reputation: 2576Reputation: 2576Reputation: 2576Reputation: 2576Reputation: 2576
Member response

Hi,

If you are using UEFI then reference;
Quote:
From http://docs.slackware.com/howtos:sla..._uefi_hardware

Tips on install when not using BIOS legacy mode

Once you have the Slackware installation environment up and running, remember to use a GUID Partition Table rather than MBR Partitioning and include a suitable system partition on the primary local hard disk. During the setup phase you should skip Lilo configuration, since you will not be using it. Instead configure your EFI-capable bootloader after setup has finished and before your first reboot. To do this mount the local system partition and setup your boot environment by adding an EFI-capable bootloader, kernel and any configuration files. If you used the above instructions for creating your own install media, simply copy over the files from your boot media to your local system partition, then adjust the local elilo.conf as follows (this assumes you placed Slackware's root partition on /dev/sda2):
Plus you can search through; start » howtos » slackware_admin » installing_on_uefi_hardware

Hope this helps.
Have fun & enjoy!
 
Old 07-02-2017, 10:34 AM   #3
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 3,145
Blog Entries: 9

Rep: Reputation: 1671Reputation: 1671Reputation: 1671Reputation: 1671Reputation: 1671Reputation: 1671Reputation: 1671Reputation: 1671Reputation: 1671Reputation: 1671Reputation: 1671
You use elilo just the same way that you would use lilo on a BIOS system. Go to root, edit your /etc/elilo.conf file to point to the new kernel, then run /sbin/elilo.
 
Old 07-02-2017, 10:45 AM   #4
laprjns
Member
 
Registered: Oct 2005
Location: Connecticut USA
Distribution: SalixOS
Posts: 186

Rep: Reputation: 92
Quote:
Originally Posted by hazel View Post
You use elilo just the same way that you would use lilo on a BIOS system. Go to root, edit your /etc/elilo.conf file to point to the new kernel, then run /sbin/elilo.
No, there is no /etc/elilo.conf file.

After upgrading to a new kernel, all you need to do is to run eliloconfig as root. This will copy the new kernel from /boot to /boot/efi/EFI/Slackware/vmlinuz
 
Old 07-02-2017, 11:03 AM   #5
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
if everything is already setup and you just need to update the kernel

just copy your kernel to /boot/efi/EFI/Slackware

edit the elilo.conf in there and point it to the kernel

Code:
tree /boot/efi/EFI/Slackware/
/boot/efi/EFI/Slackware/
├── elilo.conf
├── elilo.efi
├── initrd-4.4.75.gz
├── vmlinuz-generic-4.4.75
└── vmlinuz-huge-4.4.75
less /boot/efi/EFI/Slackware/elilo.conf
Code:
chooser=simple
delay=2
timeout=2

image = vmlinuz-generic-4.4.75
  initrd = initrd-4.4.75.gz 
  label = Slackware
  read-only
  append="root=/dev/sdb2 vga=normal ro"

#
image=vmlinuz-huge-4.4.75
        label=vmlinuz-huge
        read-only
        append="root=/dev/sdb2 vga=normal ro"
that's it.

if your elilo conf just uses generic names, without version number, than copy is enough.
 
3 members found this post helpful.
Old 07-02-2017, 11:50 AM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 8,917

Rep: Reputation: Disabled
Quote:
Originally Posted by a4z View Post
if everything is already setup and you just need to update the kernel

just copy your kernel to /boot/efi/EFI/Slackware

edit the elilo.conf in there and point it to the kernel

Code:
tree /boot/efi/EFI/Slackware/
/boot/efi/EFI/Slackware/
├── elilo.conf
├── elilo.efi
├── initrd-4.4.75.gz
├── vmlinuz-generic-4.4.75
└── vmlinuz-huge-4.4.75
less /boot/efi/EFI/Slackware/elilo.conf
Code:
chooser=simple
delay=2
timeout=2

image = vmlinuz-generic-4.4.75
  initrd = initrd-4.4.75.gz 
  label = Slackware
  read-only
  append="root=/dev/sdb2 vga=normal ro"

#
image=vmlinuz-huge-4.4.75
        label=vmlinuz-huge
        read-only
        append="root=/dev/sdb2 vga=normal ro"
that's it.

if your elilo conf just uses generic names, without version number, than copy is enough.
No need to do that manually. As laprjns said, just run eliloconfig as root, it will do it for you (and also include a boot entry for Slackware in the firmware's boot menu if asked politely). And that is written in the Slackware ChangeLog
Code:
Fri Jun 30 21:14:15 UTC 2017
...
patches/packages/linux-4.4.75/*: Upgraded.
       This kernel fixes security issues that include possible stack exhaustion,
       memory corruption, and arbitrary code execution.
       Be sure to upgrade your initrd after upgrading the kernel packages.
       If you use lilo to boot your machine, be sure lilo.conf points to the correct
       kernel and initrd and run lilo as root to update the bootloader.
       If you use elilo to boot your machine, you should run eliloconfig to copy the
       kernel and initrd to the EFI System Partition.

Last edited by Didier Spaier; 07-02-2017 at 11:54 AM.
 
4 members found this post helpful.
Old 07-05-2017, 07:13 AM   #7
vencent
LQ Newbie
 
Registered: Jun 2017
Posts: 21

Original Poster
Rep: Reputation: Disabled
Thanks, a4z & Didier Spaier
 
Old 07-05-2017, 01:48 PM   #8
slackb0t
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware64-current on Thinkpad Carbon X1
Posts: 263

Rep: Reputation: 63
edit: Wrong information. Thanks to bormant for catching it.

Last edited by slackb0t; 07-13-2017 at 03:33 PM.
 
Old 07-05-2017, 11:07 PM   #9
bormant
Member
 
Registered: Jan 2008
Posts: 335

Rep: Reputation: 194Reputation: 194
@slackb0t
One note on this elilo.conf:
this way initrd.gz should contain modules for both 4.9.35 AND 4.9.34 or else one of generic kernel with stock config can not boot without modules for mounting the root partition.
 
1 members found this post helpful.
Old 07-07-2017, 12:34 PM   #10
slackb0t
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware64-current on Thinkpad Carbon X1
Posts: 263

Rep: Reputation: 63
edit: Wrong information. Thanks to bormant for catching it.

Last edited by slackb0t; 07-13-2017 at 03:33 PM.
 
Old 07-11-2017, 08:47 AM   #11
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, arch, ubuntu, others
Posts: 3,266

Rep: Reputation: 532Reputation: 532Reputation: 532Reputation: 532Reputation: 532Reputation: 532
Quote:
No need to do that manually. As laprjns said, just run eliloconfig as root
yes, but eliloconfig only copies the kernel that /boot/vmlinuz is linked to, usually the huge kernel, and overwrites the elilo.conf file.
 
Old 07-11-2017, 10:11 AM   #12
bormant
Member
 
Registered: Jan 2008
Posts: 335

Rep: Reputation: 194Reputation: 194
Quote:
Originally Posted by slackb0t View Post
I leave the generic .34 and it's modules and source installed. I generally keep 2 or 3 generations back just in case. I can boot any of the .3x kernels right now.
To boot two *generic* kernels fox ex. .34 and .35 with single initrd.gz as shown in you elilo.conf, it should contains drivers for root FS and all other needed kernel modules for both .34 and .35 kernels. But /usr/share/mkinitrd/mkinitrd_command_generator.sh doesn't do this (modules for more than one kernel) for you. And yes of course, you can do this manually, skipping -c (clear current initrd tree) switch for mkinitrd.
 
1 members found this post helpful.
Old 07-12-2017, 08:56 PM   #13
slackb0t
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware64-current on Thinkpad Carbon X1
Posts: 263

Rep: Reputation: 63
edit: Wrong information. Thanks to bormant for catching it.

Last edited by slackb0t; 07-13-2017 at 03:34 PM.
 
Old 07-13-2017, 12:39 PM   #14
bormant
Member
 
Registered: Jan 2008
Posts: 335

Rep: Reputation: 194Reputation: 194
@slackb0t
are you build your own kernels with root system fs driver '=y'?
If so they doesn't need initrd to boot.
If '/' is one of ext fs can we see output of
Code:
# zgrep EXT._FS= /proc/config.gz

Last edited by bormant; 07-13-2017 at 12:40 PM.
 
1 members found this post helpful.
Old 07-13-2017, 01:29 PM   #15
slackb0t
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware64-current on Thinkpad Carbon X1
Posts: 263

Rep: Reputation: 63
@bormant

You are 100 percent correct. I edited my posts above so as not to confuse anyone. I appreciate you taking the time to respond b/c you may have saved me a lot of trouble in the future if something had gone wrong.

Last edited by slackb0t; 07-13-2017 at 03:38 PM.
 
  


Reply


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
how to update elilo ?? BW-userx Slackware 13 11-18-2016 08:20 PM
[SOLVED] elilo broken on Slackware 14.2 after Windows 10 update on dual boot UEFI system hyperhead Slackware 5 08-03-2016 01:45 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 01:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration