LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 02-04-2017, 05:53 PM   #1
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 304

Rep: Reputation: Disabled
elilo vs kernel and initrd on /boot


Hello Everyone,

Contrary to the typical use case, I would like to use elilo in a way, that the kernel and initrd images would still reside on a dedicated ext4 GUID partition.
The typical use case being the kernel and initrd resising next to the bootloader on the EFT System Partition.

If I wish to keep my kernels on /boot, how should I specify that to elilo? What should the device path look like?
Thank you in advance!
 
Old 02-04-2017, 09:41 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
The kernel boot config entries are in the boot devices elilo.conf file.

http://unix.stackexchange.com/questi...fi-boot-loader

Quote:
You can select any of the Linux kernel boot configuration entries in the boot device's elilo.conf file. To select a boot entry, enter its label at the "ELILO boot" prompt along with any additional boot options to be passed to the kernel.
http://docstore.mik.ua/manuals/hp-ux...B/ch05s21.html

Make sure you save a backup copy of elilo.conf.
 
Old 02-05-2017, 07:59 AM   #3
laprjns
Member
 
Registered: Oct 2005
Location: Connecticut USA
Distribution: SalixOS
Posts: 206

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by wowbaggerHU View Post
If I wish to keep my kernels on /boot,...
I apologize if you already know this but the kernel and initrd are installed to the /boot partition. When eliloconfig is run after the kernel package is installed, it copies the kernel and initrd (if required) to the the Slackware directory on the ESP partition. So the kernel remains in /boot, it's just not the copy that is being booted. After each kernel update, you need to run eliloconfig similar to running lilo -v on legacy systems.

Quote:
how should I specify that to elilo? What should the device path look like?
As far as i know, you can't. elilo cannot read ext4 file systems, nor does it look like it can read across file systems. The only way that it may be possible using elilo (again, that I know of) is to change your /boot partition to a FAT32 and copy elilo.efi, elilo.config along with the kernel and initrd to it. Then using efibootmgr, create a boot menu entry in EFI firmware NVRAM that points to the elilo.efi in the /boot partition. I believe that rEFInd can be configured to boot the kernel directly from the /boot directory as the kernel had been configures as and EFI stub loader.

Personally, in either case I don't think it's worth the effort.
 
3 members found this post helpful.
Old 02-05-2017, 02:22 PM   #4
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 304

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by laprjns View Post
As far as i know, you can't. elilo cannot read ext4 file systems, nor does it look like it can read across file systems.
If that is in deed the case, then I will have to revise my original plans.
I thought, that elilo was capable of loading kernel/initrd images from different Linux partitions, I just thought, that there weren't many example configs for that on the web. (And I suspected that to be the reason why I didn't find any.)
I just needed confirmation whether that was possible or not.

Quote:
Originally Posted by laprjns View Post
Personally, in either case I don't think it's worth the effort.
You might me right with that. I'm thinking of removing my /boot partition, and enlarge my ESP to use up the extra space originally allocated for /boot. I will put the contents of /boot partition to my root fs' /boot directory, thereby clearing things up.

Thanks for your help!
 
Old 02-05-2017, 05:57 PM   #5
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
Blog Entries: 15

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
Don't forget to mark your thread SOLVED.
 
  


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
kernel and initrd image does not boot using efi stub loader antwil Linux - Kernel 3 07-26-2015 10:54 AM
WHen I rebooted my laptop it is stuck at "initrd /boot/initrd.img Shadowmeph Linux - Newbie 2 03-07-2014 03:03 PM
[SOLVED] initrd / generic kernel --> won't boot. What am I forgetting? chexmix Slackware 6 09-30-2012 02:43 PM
[SOLVED] Machine hangs on boot. kernel or Initrd not loaded. acalderon Linux - Kernel 5 08-17-2009 12:21 AM
how to make initrd.img for your kernel without boot disk? donaldtalbert Linux - Software 1 06-19-2005 10:30 PM

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

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