hardware:purism-librem14:gentoo-luks-lvm-librem-key
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
hardware:purism-librem14:gentoo-luks-lvm-librem-key [2024-04-02 09:23] – created zlg | hardware:purism-librem14:gentoo-luks-lvm-librem-key [2024-04-12 08:44] (current) – [Anatomy of the Librem 14's Boot] correct info based on chat on Purism's forum zlg | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Librem 14 with Gentoo, LUKS, LVM, Librem Key ====== | ====== Librem 14 with Gentoo, LUKS, LVM, Librem Key ====== | ||
- | This guide is designed to get you from a Librem 14 in any configuration | + | This guide is designed to get you to a PureBoot-enabled, |
**THIS PAGE IS A WORK IN PROGRESS. THERE IS NO GUARANTEE THAT ANYTHING HERE WILL WORK, BUT IN GENERAL I HAVE TESTED IT ON MY OWN SETUP AND VERIFIED IT TO WORK BEFORE PUBLISHING IT HERE. IF ANYTHING YOU TRY HERE BREAKS YOUR SYSTEM, YOU GET TO KEEP THE PIECES. I DON'T DO FREE TECH SUPPORT. YOU HAVE BEEN WARNED.** | **THIS PAGE IS A WORK IN PROGRESS. THERE IS NO GUARANTEE THAT ANYTHING HERE WILL WORK, BUT IN GENERAL I HAVE TESTED IT ON MY OWN SETUP AND VERIFIED IT TO WORK BEFORE PUBLISHING IT HERE. IF ANYTHING YOU TRY HERE BREAKS YOUR SYSTEM, YOU GET TO KEEP THE PIECES. I DON'T DO FREE TECH SUPPORT. YOU HAVE BEEN WARNED.** | ||
+ | |||
+ | ===== Supporting Links and Documentation ===== | ||
+ | |||
+ | Despite this process being meant to install Gentoo (or frankly, anything else that' | ||
+ | |||
+ | It's a good idea to keep a few of these tabs handy as you continue through this guide, because I won't be copying //all// steps verbatim. I //will// supply lines for all actions taken on the device, however. Some experience with GNU/Linux is expected from the reader, but anyone with research skills and the ability to read a manual can get by. | ||
+ | |||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | ===== Anatomy of the Librem 14's Boot ===== | ||
+ | |||
+ | The Librem 14 runs a system of early boot technologies in concert, together called // | ||
+ | |||
+ | Coreboot acts as a firmware loader for the laptop. It loads a firmware called Heads, which is a tiny Linux system that fits in embedded chip storage. It can optionally check for the **Librem Key** for tamper-evident boot. With an '' | ||
+ | |||
+ | So in short, the chain is as such: | ||
+ | |||
+ | * Coreboot starts, runs Heads | ||
+ | * Heads loads | ||
+ | * Librem Key ''/ | ||
+ | * GRUB config is read | ||
+ | * Heads runs the initramfs | ||
+ | * LUKS volume is opened with Librem Key | ||
+ | * LVM reads the now unlocked volume group | ||
+ | * ''/ | ||
+ | * The OS begins here | ||
+ | |||
+ | Simple, right? LOL | ||
+ | ===== Download Gentoo Live ISO, '' | ||
+ | |||
+ | ===== Use recovery shell inside Heads to mount and boot Live image correctly ===== | ||
+ | |||
+ | ===== Prepare storage for encryption ===== | ||
+ | |||
+ | ===== Generate (or prepare) a GnuPG key for the Librem Key ===== | ||
+ | |||
+ | ===== Wipe storage and encrypt with new key ====== | ||
+ | |||
+ | ===== Unlock storage and install LVM ===== | ||
+ | |||
+ | ===== Prepare LVM volumes and filesystems ===== | ||
+ | |||
+ | ===== Download and extract stage3 ===== | ||
+ | |||
+ | ===== Follow Gentoo Handbook up until kernel/ | ||
+ | |||
+ | ===== Fetch Purism' | ||
+ | |||
+ | ===== Build new initrd or configure Heads to support LUKS, LVM, and Librem Key ===== | ||
+ | |||
+ | ===== Factory Reset Heads and associate with Librem Key ===== | ||
+ | |||
+ | ===== Pull it all together, and pray ===== |
hardware/purism-librem14/gentoo-luks-lvm-librem-key.1712049820.txt.gz · Last modified: 2024-04-02 09:23 by zlg