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 12-04-2016, 11:50 PM   #1
interested_penguin
LQ Newbie
 
Registered: Dec 2015
Distribution: Slackware64 14.2
Posts: 17

Rep: Reputation: Disabled
How do I set up a EFI Stub kernel with initrd using efibootmgr?


So currently I want to switch a computer to the generic Kernel.But it can only boot trough UEFI and I don't have physical access to it.So I must edit to boot directly into the generic kernel with the initrd.gz.I can't seem to find information regarding this for Slackware.So how would I go about setting this up?
 
Old 12-05-2016, 05:24 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665Reputation: 6665
I think it is done via eliloconfig, but I don't have any machines booting off UEFI, so I'm not very familiar with it.

You might also need to transfer the generic kernel to some directory under /boot/EFI/, but I can't remember what.
 
Old 12-05-2016, 08:07 PM   #3
laprjns
Member
 
Registered: Oct 2005
Location: Connecticut USA
Distribution: SalixOS
Posts: 206

Rep: Reputation: 108Reputation: 108
You can use efibootmgr. Assuming that you have the generic kernel and initrd in a directory called "Slackware" on the ESP partition (usually sda1) and again assuming for example that your root file system is on sda3, the command would look something like this:

# efibootmgr -d /dev/sda -p 1 -c -L "Slackware" -l \\EFI\Slackware\\kernel-generic -u "root=/dev/sda3 rw initrd=/EFI/Slackware/initrd.gz"

Obviously you will need to make changes to this based on your particular partitioning scheme.

Last edited by laprjns; 12-07-2016 at 04:45 AM.
 
2 members found this post helpful.
Old 12-06-2016, 06:46 AM   #4
interested_penguin
LQ Newbie
 
Registered: Dec 2015
Distribution: Slackware64 14.2
Posts: 17

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by laprjns View Post
You can use efibootmgr. Assuming that you have the generic kernel and initrd in a directory called "Slackware" on the ESP partition (usually sda1) and again assuming for example that your root file system is on sda3, the command would look something like this:

# efibootmgr -d /dev/sda -p 1 -c -L "Slackware" -l \\EFI\Slackware\\kernel-generic -u "root=/dev/sdZ rw initrd=/EFI/Slackware/initrd.gz"

Obviously you will need to make changes to this based on your particular partitioning scheme.
Thanks!Just did that.
 
Old 12-10-2016, 04:21 AM   #5
aragorn2101
Member
 
Registered: Dec 2012
Location: Mauritius
Distribution: Slackware
Posts: 567

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301
Hi,

May I suggest you use a boot loader like GRUB. It gives you much more flexibility. You can multi-boot and in case you upgrade a kernel or want to try a new kernel version or a custom built kernel, it is very easy to add an entry to the boot loader.

Also, with a boot loader, you use the efibootmgr command just once, only to register the GRUB EFI binary into the UEFI firmware settings, then you play with the boot loader's menu and options as you please.
 
Old 12-10-2016, 09:44 AM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,862

Rep: Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684Reputation: 1684
"Grub_install -- target-x86_64_efi /dev/sda" then copy the grubx64.efi to EFI/BOOT/bootx64.efi this works for has worked for me from both a bios and efi system to allow to boot from efi system
 
Old 12-10-2016, 01:58 PM   #7
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 809

Rep: Reputation: 503Reputation: 503Reputation: 503Reputation: 503Reputation: 503Reputation: 503
Quote:
Originally Posted by aragorn2101 View Post
Hi,

May I suggest you use a boot loader like GRUB. It gives you much more flexibility. You can multi-boot and in case you upgrade a kernel or want to try a new kernel version or a custom built kernel, it is very easy to add an entry to the boot loader.

Also, with a boot loader, you use the efibootmgr command just once, only to register the GRUB EFI binary into the UEFI firmware settings, then you play with the boot loader's menu and options as you please.
You can do all these things with elilo
 
1 members found this post helpful.
  


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
[SOLVED] EFI stub boot ymf331 Slackware 5 06-11-2014 10:42 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

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

All times are GMT -5. The time now is 08:05 AM.

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