LinuxQuestions.org
Visit Jeremy's Blog.
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 02-26-2015, 07:32 PM   #1
ymf331
Member
 
Registered: May 2014
Posts: 50

Rep: Reputation: Disabled
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?
 
Old 02-26-2015, 09:30 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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.
 
Old 02-26-2015, 09:33 PM   #3
dr.s
Member
 
Registered: Feb 2010
Distribution: Slackware64-current
Posts: 338

Rep: Reputation: 156Reputation: 156
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.
Old 02-26-2015, 09:48 PM   #4
ymf331
Member
 
Registered: May 2014
Posts: 50

Original Poster
Rep: Reputation: Disabled
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.
 
Old 02-26-2015, 10:02 PM   #5
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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.
 
Old 02-26-2015, 10:08 PM   #6
ymf331
Member
 
Registered: May 2014
Posts: 50

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ztcoracat View Post
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.
 
Old 02-26-2015, 10:41 PM   #7
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by ymf331 View Post
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.
 
  


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



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

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