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.
|
 |
02-26-2015, 07:32 PM
|
#1
|
Member
Registered: May 2014
Posts: 50
Rep: 
|
efibootmgr help
I haven't messed with it in a while. I've got my boot partition on /dev/sda1 (my initrd is at /efi/EFI/Slackware/initrd.gz and a copy of the 3.10.17 kernel is there as well) and an lvm for /dev/sda2 with a couple volumes. my root is /dev/system/slackware on it. I need to create a boot entry using efibootmgr and I can't for the life of me remember how it goes. I remember it being a giant pain in the butt. Can't remember if I need to point to the partition and there were backslashes and single quotes and all sorts of things. Can anyone help me out?
|
|
|
02-26-2015, 09:30 PM
|
#2
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
|
I've never created a boot entry using the efi bootmgr.
I think the initrd is to boot the system which attempts to mount /sysroot and then look for the fstab.
Quote:
An OS installer would call efibootmgr -c. This assumes that /boot/efi is your EFI System Partition, and is mounted at /dev/sda1. This creates a new boot option, called "Linux", and puts it at the top of the boot order list. Options may be passed to modify the default behavior. The default OS Loader is elilo.efi.
|
http://linux.die.net/man/8/efibootmgr
Here's another way:-
-:-To create an EFI boot entry, a couple of arguments are passed to efibootmgr-:-
http://wiki.gentoo.org/wiki/Efibootm...g_a_boot_entry
Hope that helps.
|
|
|
02-26-2015, 09:33 PM
|
#3
|
Member
Registered: Feb 2010
Location: Canada
Distribution: Slackware64-current
Posts: 361
Rep: 
|
Here's a sample to set up a new entry on partition 1 of /dev/sda
Code:
efibootmgr -c -d /dev/sda -p 1 -l \\EFI\\newloader\\loadername.efi -L NewLoader
Very helpful link with lots of details here --> http://www.rodsbooks.com/efi-bootloa...tallation.html
Last edited by dr.s; 02-26-2015 at 09:35 PM.
|
|
1 members found this post helpful.
|
02-26-2015, 09:48 PM
|
#4
|
Member
Registered: May 2014
Posts: 50
Original Poster
Rep: 
|
I have to add -u to point to the root in the lvm and the initrd. I've tried a bunch of different things. it's something like
efibootmgr -c -L "Slackware " -l (the kernel path) -u "root=(my root path) initrd=(my initrd path)"
The backslashes and quotes and exact syntax are what get me. I've tried a bunch of different combinations and everything to no avail. every distro seems to have a different method and there's no real Slackware advice available anywhere which seems weird. I had it written down but I lost the notebook I had it in. -d and -p are redundant since my system falls under the program's defaults.
edit: also not sure if there's some way I need to declare which partition my lvm is on for the root. if I select the boot entry my screen flashes black and goes right back to my boot menu so I can only imagine I have the kernel part wrong.
Last edited by ymf331; 02-26-2015 at 09:53 PM.
|
|
|
02-26-2015, 10:02 PM
|
#5
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
|
Quote:
The backslashes and quotes and exact syntax are what get me.
|
Me too, that stuff is annoying till you get it just right.
Maybe download efi bootmgr from Slackbuilds and let it do the work.
http://slackbuilds.org/repository/14...em/efibootmgr/
I'll look around in the Forums and dig around in the Slackware Documentation.
If i find anything I'll post it for you.
|
|
|
02-26-2015, 10:08 PM
|
#6
|
Member
Registered: May 2014
Posts: 50
Original Poster
Rep: 
|
Quote:
Originally Posted by Ztcoracat
Me too, that stuff is annoying till you get it just right.
Maybe download efi bootmgr from Slackbuilds and let it do the work.
http://slackbuilds.org/repository/14...em/efibootmgr/
I'll look around in the Forums and dig around in the Slackware Documentation.
If i find anything I'll post it for you.
|
thanks for the thought but...
edit: in case this helps anyone down the road, the actual command was:
efibootmgr -c -L "Slackware" -l '\EFI\Slackware\vmlinuz-generic-3.10.17' -u "root=/dev/system/slackware initrd=/EFI/Slackware/initrd.gz"
no need to put the mount point and back-slashes only go where you point to the kernel. all the ascii stuff is regular ol' slashes.
Last edited by ymf331; 02-26-2015 at 10:27 PM.
|
|
|
02-26-2015, 10:41 PM
|
#7
|
LQ Guru
Registered: Dec 2011
Distribution: Slackware, Debian 12, Devuan & MX Linux
Posts: 9,528
|
Quote:
Originally Posted by ymf331
thanks for the thought but...
edit: in case this helps anyone down the road, the actual command was:
efibootmgr -c -L "Slackware" -l '\EFI\Slackware\vmlinuz-generic-3.10.17' -u "root=/dev/system/slackware initrd=/EFI/Slackware/initrd.gz"
no need to put the mount point and back-slashes only go where you point to the kernel. all the ascii stuff is regular ol' slashes.
|
Your Welcome.
|
|
|
All times are GMT -5. The time now is 12:54 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
|
|