LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-29-2019, 09:44 PM   #1
nekrosynthesis
LQ Newbie
 
Registered: May 2019
Distribution: Parabola
Posts: 18

Rep: Reputation: Disabled
Unhappy Need Help Configuring Grub (Libreboot) to Load LUKS Encrypted Parabola Logical Volume Group


I have been following this guide to install Parabola on my librebooted X200. There were some discrepancies in the guide but I got everything to work, and can log in to my system by typing the following commands in the Grub command line (note: I named my LVs "rootvolume" and "swapvolume" deliberately):

Code:
cryptomount -a
set root=(lvm/matrix-rootvolume)
linux /boot/vmlinuz-linux-libre root=UUID=<uuid> cryptdevice=/dev/disk/by-uuid/<uuid>
initrd /boot/initramfs-linux-libre.img
boot
So, now I am following this guide to get Grub to automatically do these commands for me (following the section without reflashing the ROM). I have entered the exact code shown above into my libreboot_grub.cfg file in my /boot/grub directory, in the section specified (minus the boot command). However, when I try to run grubtest.cfg from the Grub options menu as described, I am prompted for the password of my encrypted SSD, then the following happens:

Code:
Slot 0 opened
error: disk \ata0\ not found.
error: disk \lvm/matrix-rootvol' not found.
error: disk \lvm/matrix-boot' not found.
error: no such partition.
error: disk \ata0, 1' not found.
error: no such partition.
error: disk \ata0, 2' not found.
And so on. Towards the end it says:
Failed to boot both default and fallback entries.
Press any key to continue...
And then I get kicked out back to the Grub menu (my system does not boot into Parabola). Not sure why this is happening... any help is greatly appreciated. It almost seems like my libreboot_grub.cfg isn't being loaded. I have asked other places on the internet to no avail. Please help!
 
Old 05-30-2019, 05:11 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163
Hi:

You have:

Code:
cryptomount -a
set root=(lvm/matrix-rootvolume)
linux /boot/vmlinuz-linux-libre root=UUID=<uuid> cryptdevice=/dev/disk/by-uuid/<uuid>
initrd /boot/initramfs-linux-libre.img
boot]
According to the instructions in the tutorial you linked, It should be:

Code:
cryptomount -a
set root='lvm/matrix-root'
linux /boot/vmlinuz-linux-libre root=/dev/matrix/root cryptdevice=/dev/sda1:root \
cryptkey=rootfs:/etc/mykeyfile
initrd /boot/initramfs-linux-libre.img

Under the heading: "How To Modify The Grub Configuration File"

After this line, there will be an opening bracket {, followed by a several lines of code, and then a closing bracket }; delete everything that is between those two brackets, and replace it with the following code, if you’re using an Arch-based disribution (e.g., Parabola GNU+Linux-Libre):

https://libreboot.org/docs/gnulinux/grub_cbfs.html

Is Parabola the only os on that SSD?

Last edited by Ztcoracat; 05-30-2019 at 05:13 PM.
 
Old 05-30-2019, 06:44 PM   #3
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora, ubuntu, others
Posts: 3,806

Rep: Reputation: 647Reputation: 647Reputation: 647Reputation: 647Reputation: 647Reputation: 647
Quote:
error: disk \ata0\ not found.
error: disk \lvm/matrix-rootvol' not found.
maybe a grub module not getting loaded
add the two insmod lines and see if that helps
Code:
insmod luks
inmod lvm
cryptomount -a
set root=(lvm/matrix-rootvolume)
linux /boot/vmlinuz-linux-libre root=UUID=<uuid> cryptdevice=/dev/disk/by-uuid/<uuid>
initrd /boot/initramfs-linux-libre.img
boot
Quote:
root=UUID= <uuid> cryptdevice=/dev/disk/by-uuid/<uuid>
<uuid> should be a number that can be obtained by running
Code:
blkid
as root

Last edited by colorpurple21859; 05-30-2019 at 06:56 PM.
 
Old 05-30-2019, 10:14 PM   #4
nekrosynthesis
LQ Newbie
 
Registered: May 2019
Distribution: Parabola
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ztcoracat View Post
Hi:

You have:

Code:
cryptomount -a
set root=(lvm/matrix-rootvolume)
linux /boot/vmlinuz-linux-libre root=UUID=<uuid> cryptdevice=/dev/disk/by-uuid/<uuid>
initrd /boot/initramfs-linux-libre.img
boot]
According to the instructions in the tutorial you linked, It should be:

Code:
cryptomount -a
set root='lvm/matrix-root'
linux /boot/vmlinuz-linux-libre root=/dev/matrix/root cryptdevice=/dev/sda1:root \
cryptkey=rootfs:/etc/mykeyfile
initrd /boot/initramfs-linux-libre.img

Under the heading: "How To Modify The Grub Configuration File"

After this line, there will be an opening bracket {, followed by a several lines of code, and then a closing bracket }; delete everything that is between those two brackets, and replace it with the following code, if you’re using an Arch-based disribution (e.g., Parabola GNU+Linux-Libre):

https://libreboot.org/docs/gnulinux/grub_cbfs.html

Is Parabola the only os on that SSD?
Yeah, those commands are outdated. GRUB now defaults to using UUIDs. And the parenthesis/'' make no difference in my testing. Yes, Parabola is the only OS installed.
 
Old 05-30-2019, 10:23 PM   #5
nekrosynthesis
LQ Newbie
 
Registered: May 2019
Distribution: Parabola
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
maybe a grub module not getting loaded
add the two insmod lines and see if that helps
Code:
insmod luks
inmod lvm
cryptomount -a
set root=(lvm/matrix-rootvolume)
linux /boot/vmlinuz-linux-libre root=UUID=<uuid> cryptdevice=/dev/disk/by-uuid/<uuid>
initrd /boot/initramfs-linux-libre.img
boot
<uuid> should be a number that can be obtained by running
Code:
blkid
as root
That code didn't do anything. Also, yeah, that's how I got that particular UUID.
 
Old 05-30-2019, 11:51 PM   #6
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora, ubuntu, others
Posts: 3,806

Rep: Reputation: 647Reputation: 647Reputation: 647Reputation: 647Reputation: 647Reputation: 647
How did you create your libreboot_grub.cfg file? There could be something wrong in the lines before the menu entry that could be causing the problem
 
Old 05-31-2019, 08:13 AM   #7
nekrosynthesis
LQ Newbie
 
Registered: May 2019
Distribution: Parabola
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
How did you create your libreboot_grub.cfg file? There could be something wrong in the lines before the menu entry that could be causing the problem
I did exactly what was specified in the guide I linked. Looking at the file, I can't see anything incorrect.
 
Old 05-31-2019, 09:26 AM   #8
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora, ubuntu, others
Posts: 3,806

Rep: Reputation: 647Reputation: 647Reputation: 647Reputation: 647Reputation: 647Reputation: 647
maybe use the uuid
Code:
cryptomount -u <uuid>
 
Old 05-31-2019, 09:29 AM   #9
nekrosynthesis
LQ Newbie
 
Registered: May 2019
Distribution: Parabola
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
maybe use the uuid
Code:
cryptomount -u <uuid>
Tried that, didn't work.
 
Old 05-31-2019, 09:40 AM   #10
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora, ubuntu, others
Posts: 3,806

Rep: Reputation: 647Reputation: 647Reputation: 647Reputation: 647Reputation: 647Reputation: 647
did you
Quote:
2. Create an Image from the Current ROM
as suggested here https://libreboot.org/docs/gnulinux/grub_cbfs.html
to extract the grubtest.cfg to use as your libreboot_grub.cfg
 
Old 05-31-2019, 09:44 AM   #11
nekrosynthesis
LQ Newbie
 
Registered: May 2019
Distribution: Parabola
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
did you
as suggested here https://libreboot.org/docs/gnulinux/grub_cbfs.html
to extract the grubtest.cfg to use as your libreboot_grub.cfg
Correct me if I'm wrong, but that doesn't seem necessary, since that is under the section where you are supposed to flash the ROM (which I am not doing).
 
Old 05-31-2019, 09:52 AM   #12
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora, ubuntu, others
Posts: 3,806

Rep: Reputation: 647Reputation: 647Reputation: 647Reputation: 647Reputation: 647Reputation: 647
Your not flashing the rom, creating an image file of the rom to extract the grubtest.cfg that is in your rom
https://linux.die.net/man/8/flashrom

Last edited by colorpurple21859; 05-31-2019 at 09:54 AM.
 
Old 05-31-2019, 09:56 AM   #13
nekrosynthesis
LQ Newbie
 
Registered: May 2019
Distribution: Parabola
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Your not flashing the rom, creating an image file of the rom to extract the grubtest.cfg that is in your rom
https://linux.die.net/man/8/flashrom
Oh, sorry, yes I did that. My bad.
 
Old 05-31-2019, 10:11 AM   #14
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora, ubuntu, others
Posts: 3,806

Rep: Reputation: 647Reputation: 647Reputation: 647Reputation: 647Reputation: 647Reputation: 647
have you tried with grub-mkconfig:
Code:
grub-mkconfig -o /boot/grub/libreboot_grub.cfg
may have to make some modifications to libreboot_grub.cfg menuentry to make it work.

Last edited by colorpurple21859; 05-31-2019 at 10:13 AM.
 
Old 05-31-2019, 10:25 AM   #15
nekrosynthesis
LQ Newbie
 
Registered: May 2019
Distribution: Parabola
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
have you tried with grub-mkconfig:
Code:
grub-mkconfig -o /boot/grub/libreboot_grub.cfg
may have to make some modifications to libreboot_grub.cfg menuentry to make it work.
Yup, I have tried that.
 
  


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
LVM Mount Physical Volume/Logical Volume without a working Volume Group mpivintis Linux - Newbie 10 01-11-2014 08:02 AM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 11:56 PM
Resizable encrypted LVM requiring just one password on boot (encrypted volume group)? Nyyr Linux - Software 9 01-24-2013 06:52 AM
I have spce in volume group but it can not increase the size of logical volume anis123 Linux - Newbie 14 04-16-2012 07:23 AM
[SOLVED] Redhat volume group,logical volume group dhairysheel Red Hat 3 08-02-2011 06:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:10 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration