Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-04-2016, 11:50 PM
|
#1
|
LQ Newbie
Registered: Dec 2015
Distribution: Slackware64 14.2
Posts: 17
Rep: 
|
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?
|
|
|
12-05-2016, 05:24 PM
|
#2
|
LQ Guru
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792
|
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.
|
|
|
12-05-2016, 08:07 PM
|
#3
|
Member
Registered: Oct 2005
Location: Connecticut USA
Distribution: SalixOS
Posts: 206
Rep: 
|
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.
|
12-06-2016, 06:46 AM
|
#4
|
LQ Newbie
Registered: Dec 2015
Distribution: Slackware64 14.2
Posts: 17
Original Poster
Rep: 
|
Quote:
Originally Posted by laprjns
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.
|
|
|
12-10-2016, 04:21 AM
|
#5
|
Member
Registered: Dec 2012
Location: Mauritius
Distribution: Slackware
Posts: 567
|
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.
|
|
|
12-10-2016, 09:44 AM
|
#6
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,862
|
"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
|
|
|
12-10-2016, 01:58 PM
|
#7
|
Member
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 809
|
Quote:
Originally Posted by aragorn2101
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.
|
All times are GMT -5. The time now is 08:05 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|