LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 06-16-2022, 10:24 AM   #1
cpaulett
LQ Newbie
 
Registered: Jul 2021
Posts: 6

Rep: Reputation: Disabled
/boot partition and Libreboot


Hi everyone,

I recently started playing with GNU/Linux and installed Libreboot and Parabola on a few machines. I would like to try a fully- encrypted Parabola GNU/Linux installation on my Librebooted ThinkPad x200, and came to this page. At the very beginning, it says:

Quote:
On most systems, it is necessary to have at least an unencrypted /boot partition (while the others, including root, may be encrypted). This is so that GRUB, and therefore the kernel, can be loaded and executed, because the boot firmware itself can't open a LUKS volume. Not so with libreboot! Since GRUB is already included directly in the boot flash even /boot can be encrypted. This protects its contents from tampering by someone with physical access to the system.
I don't think I fully understand whether or not a /boot partition is needed in a system which is supposed to run on a machine with Libreboot: since the bootloader is already included in the chip ROM (along with the GRUB config file), wouldn't it be superfluous to also generate a /boot partition with GRUB? And in that scenario, which GRUB configuration would be loaded? The one in the chip or the one in /boot/grub/grub.cfg? Or maybe I misunderstood, and the two "boot partitions" (both /boot and the one in the chip ROM) are both needed in order for the system to boot properly?

Also, in the guide I linked, it says that in order to effectively boot a fully encrypted system from GRUB (without the need to type a bunch of commands from the GRUB command prompt each time) one needs to "Edit grubtest.cfg. Inside the 'Load Operating System' menu entry, change the contents to something like this:"

Quote:
cryptomount -a
set root='lvm/matrix-rootvol'
linux /boot/vmlinuz-linux-libre root=/dev/matrix/rootvol cryptdevice=/dev/sda1:root
initrd /boot/initramfs-linux-libre.img
Does it mean I have to replace the WHOLE content of the section with those 4 lines? Wouldn't that prevent from booting into "normal" (i.e. non encrypted) filesystems? Do you have any suggestion on where exactly to include those lines in crub.cfg, and what to remove, assuming I want to preserve the possibility of booting into other media (i.e. a live ISO)? I found instructions provided by the wiki to be quite unclear on this.

Thanks in advance!

Last edited by cpaulett; 06-16-2022 at 11:20 AM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Atari VCS Finally on Indiegogo, Free Software Directory Meet-up Tomorrow, Minifree Libreboot X200 Tablet Has Been FSF-Certified and Mo LXer Syndicated Linux News 0 06-01-2018 06:02 AM
Chainload in libreboot? ordealbyfire83 Linux - Software 3 02-09-2016 11:47 AM
LXer: Libreboot on an x60, Part II: the Installation LXer Syndicated Linux News 0 10-28-2015 09:03 PM
LXer: Libreboot on an X60, Part I: the Setup LXer Syndicated Linux News 0 09-28-2015 02:21 PM

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

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