LinuxQuestions.org
Visit Jeremy's Blog.
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 08-16-2021, 02:19 PM   #1
Toutatis
Member
 
Registered: Feb 2013
Posts: 415

Rep: Reputation: Disabled
New to elilo


I have installed slackware64-current with elilo boot loader. It runs fine.

My /boot/efi/EFI/Slackware/elilo.conf from installation contains

Quote:
chooser=simple
delay=1
timeout=1
#
image=vmlinuz
label=vmlinuz
initrd=initrd.gz
read-only
append="root=/dev/sdb2 vga=normal ro"
I would like to be able to choose between two kernels, so I would add
for example

Quote:
image=vmlinuz-huge
label=vmlinuz-huge
read-only
append="root=/dev/sdb2 vga=normal ro"
(and copy the kernel vmlinuz-huge to /boot/efi/EFI/Slackware/).

And then run elilo as indicated in /usr/doc/elilo-3.16/elilo.txt
But there is no elilo !

How can I do ? Is this new elilo.conf correct ?
 
Old 08-16-2021, 02:50 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206
There should be no need to run eliloconfig again. Just copy the files over, make the changes to the elilo.conf and reboot.

In fact, be warned - if you run eliloconfig again it WILL overwrite your elilo.conf file - keep a backup of your changes.

Last edited by astrogeek; 08-16-2021 at 03:09 PM.
 
4 members found this post helpful.
Old 08-16-2021, 03:06 PM   #3
dr.s
Member
 
Registered: Feb 2010
Distribution: Slackware64-current
Posts: 345

Rep: Reputation: 159Reputation: 159
There's eliloconfig (no elilo command as far as I know) but you've already set up elilo.
I don't think you need to run anything after copying the 2nd kernel.
 
1 members found this post helpful.
Old 08-16-2021, 03:11 PM   #4
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Or add a menu with timeout & default to choose at boot. Replace the names of your kernels & initrds as needed.

Code:
prompt
timeout=50
default=Gen5.13.11
image=vmlinuz-generic-5.13.11
  label=Gen5.13.11
  initrd=initrd-5.13.11.gz
  append="root=/dev/sda2 resume=/dev/sda1" 
  read-only 
  append="root=/dev/sda2 resume=/dev/sda1" 
image=vmlinuz-generic-5.13.8
  label=Gen5.13.8
  initrd=initrd-5.13.8.gz
  append="root=/dev/sda2 resume=/dev/sda1" 
  read-only 
  append="root=/dev/sda2 resume=/dev/sda1"
 
4 members found this post helpful.
Old 08-16-2021, 03:19 PM   #5
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,918

Rep: Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035
Yes, there's no need to re-run eliloconfig again: you can just copy your kernels in there yourself with 'cp' when they change.

Because I dual-boot with CRUX, I set it up slightly differently to stock slackware, using subdirectories like this:
Code:
$ tree /boot/efi/EFI/Linux/
/boot/efi/EFI/Linux/
├── crux
│** ├── initrd.gz
│** └── vmlinuz
├── elilo.conf
├── elilo.efi
├── generic
├── local
├── slackware
│** ├── initrd.gz
│** └── vmlinuz
└── test
    └── initramfs.img

5 directories, 7 files

Code:
# elilo.conf

chooser=simple
prompt
timeout=50

image=crux/vmlinuz
  initrd=crux/initrd.gz
  read-only
  root=/dev/sysvg/lvcrux36
  append="acpi_backlight=video \
          vt.default_utf8=1 \
          rootfstype=ext4 \
          fbcon=font:TER16x32 \
          nosmt \
          loglevel=2 console=tty8"
  label=crux

image=slackware/vmlinuz
  initrd=slackware/initrd.gz
  read-only
  append="acpi_backlight=video \
          vt.default_utf8=1 \
          rootfstype=ext4 \
          fbcon=font:TER16x32 \
          loglevel=2 console=tty8"
  label=slackware

image=crux/vmlinuz
  initrd=test/initramfs.img
  read-only
  append="acpi_backlight=video \
          vt.default_utf8=1 \
          fbcon=font:TER16x32 \
          loglevel=2 console=tty8"
  label=test
When slackware updates its kernel I just copy the new vmlinuz and initrd files to /boot/efi/EFI/Linux/slackware/. In fact I have a script that does it automatically for me.

Last edited by GazL; 08-16-2021 at 05:23 PM.
 
3 members found this post helpful.
Old 08-16-2021, 05:04 PM   #6
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,474
Blog Entries: 7

Rep: Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573
Quote:
Originally Posted by Toutatis View Post
And then run elilo as indicated in /usr/doc/elilo-3.16/elilo.txt
But there is no elilo !

How can I do ? Is this new elilo.conf correct ?
Unlike lilo, you don't need to run elilo to reinstall it every time you change the configuration.

If it is installed and working, then it is sufficient to edit the config and put the kernel & initrd in the Slackware directory on your EFI partition.

When it boots, you can press tab at the prompt to get a list of kernels. Unfortunately, there is no menu.
 
1 members found this post helpful.
Old 08-17-2021, 05:03 AM   #7
Toutatis
Member
 
Registered: Feb 2013
Posts: 415

Original Poster
Rep: Reputation: Disabled
Thank you for the answers.
If a huge kernel is installed I suppose that I don't need the line initrd=...
 
Old 08-17-2021, 05:19 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,682
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
Quote:
Originally Posted by Toutatis View Post
Thank you for the answers.
If a huge kernel is installed I suppose that I don't need the line initrd=...
You shouldn't normally, no.
 
1 members found this post helpful.
Old 08-17-2021, 05:55 AM   #9
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,918

Rep: Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035
Quote:
Originally Posted by Toutatis View Post
Thank you for the answers.
If a huge kernel is installed I suppose that I don't need the line initrd=...
You'll still need a initrd if you're using something like lvm, raid or luks for your rootfs, or for loading cpu firmware, otherwise it's not needed with 'huge'.

Last edited by GazL; 08-17-2021 at 05:56 AM.
 
3 members found this post helpful.
Old 08-18-2021, 12:30 AM   #10
pghvlaans
Member
 
Registered: Jan 2021
Distribution: Slackware64 {15.0,-current}, FreeBSD, stuff on QEMU
Posts: 462

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
I've found that huge also needs an initrd if Slackware is a VM guest. Maybe that's just for EFI booting, though.
 
Old 08-20-2021, 12:32 PM   #11
ethelack
Member
 
Registered: Mar 2021
Location: New Zealand
Distribution: Slackware
Posts: 82

Rep: Reputation: Disabled
Quote:
Originally Posted by rkelsen View Post
When it boots, you can press tab at the prompt to get a list of kernels. Unfortunately, there is no menu.
It is possible to have a elilo menu by editing the "chooser" and "message" options in elilo.conf and including a "textmenu-message.msg" file in the directory.

I have edited the debian example file from /usr/doc/elilo-3.16/examples/textmenu_chooser/textmenu-message.msg and come up with a few themes for the menu.

The gitlab page for it is here https://gitlab.com/ethelack/elilo-te...message-themes

Also available to clone with the command:
git clone https://gitlab.com/ethelack/elilo-te...message-themes ~/elilo-textmenu-message-themes
Attached Thumbnails
Click image for larger version

Name:	elilo-blue.png
Views:	166
Size:	7.2 KB
ID:	37073  

Last edited by ethelack; 08-29-2021 at 07:24 PM. Reason: Update thumbnail
 
9 members found this post helpful.
Old 08-20-2021, 01:55 PM   #12
adcdam
Member
 
Registered: Aug 2020
Location: Berisso, Argentina
Distribution: Slackware
Posts: 255

Rep: Reputation: 205Reputation: 205Reputation: 205
thanks a lot for the text menu ethelack

im using it and it look nice!!
 
Old 08-20-2021, 06:51 PM   #13
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,474
Blog Entries: 7

Rep: Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573
Quote:
Originally Posted by ethelack View Post
Quote:
Originally Posted by rkelsen View Post
When it boots, you can press tab at the prompt to get a list of kernels. Unfortunately, there is no menu.
It is possible to have a elilo menu by editing the "chooser" and "message" options in elilo.conf and including a "textmenu-message.msg" file in the directory.

I have edited the debian example file from /usr/doc/elilo-3.16/examples/textmenu_chooser/textmenu-message.msg and come up with a few themes for the menu.

The gitlab page for it is here https://gitlab.com/ethelack/elilo-te...message-themes

Also available to clone with the command:
git clone https://gitlab.com/ethelack/elilo-te...message-themes ~/elilo-textmenu-message-themes
That's excellent! Thanks.
 
Old 08-20-2021, 07:04 PM   #14
carriunix
Member
 
Registered: Feb 2020
Location: Brazil
Distribution: Slackware
Posts: 45
Blog Entries: 6

Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by ethelack View Post
It is possible to have a elilo menu by editing the "chooser" and "message" options in elilo.conf and including a "textmenu-message.msg" file in the directory.

I have edited the debian example file from /usr/doc/elilo-3.16/examples/textmenu_chooser/textmenu-message.msg and come up with a few themes for the menu.

The gitlab page for it is here https://gitlab.com/ethelack/elilo-te...message-themes

Also available to clone with the command:
git clone https://gitlab.com/ethelack/elilo-te...message-themes ~/elilo-textmenu-message-themes
Thank you, ethelack! This is very nice. The absence of menu in elilo was bothering me...
 
Old 08-21-2021, 08:48 PM   #15
ethelack
Member
 
Registered: Mar 2021
Location: New Zealand
Distribution: Slackware
Posts: 82

Rep: Reputation: Disabled
Quote:
Originally Posted by adcdam View Post
im using it and it look nice!!
Thank you all for the feedback its good to know that the text-message.msg renders ok on other displays.
 
  


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] 14.2: new to elilo, checking procedure for kernel upgrades rshepard Slackware 4 10-03-2018 09:10 AM
Elilo gpt slackware 13.37 64 -current -Fay- Linux - Software 2 03-09-2012 08:22 AM
UEFI PXE server elilo.conf configuration miszum Linux - Networking 2 08-05-2011 11:31 AM
question about rEFIt, elilo, and linux/OSX dualboot. fbsduser Other *NIX 1 02-21-2011 09:49 AM
At boot I get ELILO Boot: markw10 Mandriva 2 08-27-2009 11:56 PM

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

All times are GMT -5. The time now is 11:56 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