LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-11-2014, 08:36 PM   #1
ymf331
Member
 
Registered: May 2014
Posts: 50

Rep: Reputation: Disabled
EFI stub boot


Hi. I want to do away with bootloaders and initial ramdisks and all that but I can't seem to find the information I need. Will I need to build anything into the kernel? Like filesystem mods or anything? I read that the support for efi stub is already built into the kernel. I'm going to look up what I do after that but anything helpful will help. Thanks.
 
Old 06-11-2014, 09:07 PM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,345

Rep: Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588
You will need to rebuild your kernel with drivers and file sytems required for booting without a initial ramdisk, along with the options needed to boot as efi stub. Here is some info on setting the kernel up as an EFI stub. http://www.rodsbooks.com/efi-bootloaders/efistub.html. The drivers and filesystems that have to build into the kernel will depend on your hardware and file systems. You may need a larger EFI partition to hold the efi stub kernel.

Last edited by colorpurple21859; 06-11-2014 at 09:16 PM.
 
Old 06-11-2014, 09:37 PM   #3
ymf331
Member
 
Registered: May 2014
Posts: 50

Original Poster
Rep: Reputation: Disabled
That and the archlinux wiki were the two places that had at least some information. I have been trying but there really isn't a detailed guide anywhere. I got my kernel to boot by using efibootmgr and feeding it an initrd with jbd2 and ext4 mods. For some reason the root lv in the partition that I just formatted is being mistaken for a luks device? And /dev/system/slackroot won't mount, but I'm making progress.

Edit: oyea the efi stub options are enabled in the generic configuration.

Last edited by ymf331; 06-11-2014 at 09:38 PM.
 
Old 06-11-2014, 09:50 PM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,345

Rep: Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588
Quote:
I got my kernel to boot by using efibootmgr
Well at least this part is working. This
Quote:
For some reason the root lv in the partition that I just formatted is being mistaken for a luks device? And /dev/system/slackroot won't mount
and still having to use an initrd is most likley from not having everything you need built into your kernel.
 
1 members found this post helpful.
Old 06-11-2014, 09:51 PM   #5
ymf331
Member
 
Registered: May 2014
Posts: 50

Original Poster
Rep: Reputation: Disabled
Unedited: No wait. I don't understand why my lvm partition with my root on it is being recognized as a luks device. I can mount it myself no problem. It was encrypted 2 repartition/full reinstalls ago. Is there something that I need to do there?

Edit: Yep. I'm saving compiling my first kernel for after I get my system to boot, but I think the initrd will work for now.

Last edited by ymf331; 06-11-2014 at 10:07 PM.
 
Old 06-11-2014, 10:42 PM   #6
ymf331
Member
 
Registered: May 2014
Posts: 50

Original Poster
Rep: Reputation: Disabled
Okay, I had accidentally put the -C option into mkinitrd out of habit. Finally got everything to boot so I guess tomorrow I'll try to figure out how to compile a kernel.
 
  


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
boot efi disk with without a non-efi bios pc... masavini Programming 1 11-12-2013 08:48 PM
[SOLVED] Slackware 14.1 and EFI stub arubin Slackware 5 10-30-2013 04:12 PM
3.4 Kernel in testing and EFI stub arubin Slackware 0 11-21-2012 01:44 PM
EFI main GPT overwritten everytime (when windows 7 runs) - structure of EFI masuch Linux - Newbie 2 07-20-2012 02:49 PM

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

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