This is an as-short-as-sensible guide of the minimum necessary steps to setup Gentoo with LVM, LUKS, and UEFI booting using Gummiboot. It assumes you are already familiar with the subject of setting up GNU/Linux distributions and would like to know only what is specific to Gentoo for the abovementioned. This is most definitely not the only way, but it is the shortest I - as a current Gentoo newbie - was able to determine.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN PGP SIGNATURE----- | |
iQEzBAABCgAdFiEEKgoUcl5RTLaEt1ObKcCAwHsKBKkFAly+KuwACgkQKcCAwHsK | |
BKnxBQf/aDGAbXBQmFxW9hZ2zVy0KdqnJfq/X28UaOZeHTlP5XsBhwwbs3pMVpzq | |
WzA20xNZn8rRnmCzrdFR3ScosqXEqBRnZKn5rOn3fV6OQ/KVK4LqEORPy0nVtQKE | |
Z/2N3B/McQ63rV6JB1ZYkYdqKM/lD6t6kd62tcnJqHjEHwDauuk9NCbaQCv2pOpR | |
rieEKVJn2tzICoLrMAi4uSg17CXf+ashrwl9GRF6uiLirVoBYBn2uWU3Gtp393Vk | |
ugnCRolwpUiJeYXIf2p4IQwNpOib9jxcfzVl4tjWILzclEF8vtpjnONqZS+v6ghl | |
NAT288yjRAMOJm7g5GZnEJbmJJ9eMQ== | |
=DfP2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <tuple> | |
#include <type_traits> | |
template<typename first_type, typename second_type> | |
auto operator<<(std::ostream& s, std::tuple<first_type, second_type> t) -> std::ostream& | |
{ | |
auto const& [first, second] = t; | |
return s << "(" << first << ", " << second << ")"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQIJBFR6U7MBD+DYEuVSvWoj09YLeoIaBC/tGPS3k7qAt3sa+FSPukaPI4Vcxcc/ | |
B9S9RCbcrvNl0Ixvnp7dapKw7brK+R7GSdOnfgrMTPHSdKZ/MRcGPGK8lmldFHG1 | |
g5bw0epgJJOif56aXiTfMjZXgSXUM9LxjLuM8iqA6uLURJiHBVLKMGALDcA3ldMN | |
UzEri3iRnEuqNXS3Zf9lEhliijykKakWkbJ59wLl3MUm4cfqtkWjSAJQiVEXvq70 | |
WZKSYiKPTxtoz/UfRjwH5eTQtncKo0vOaXyA6nKcf6Yj3AXO5UEqtbUXs0gxSECB | |
hqZTCzzOK5vPzGlk6cQLOllvXafdbFcw7ydU3HOF9x4TJHh4yE+rVqSi/XYy+mOg | |
It7eddI8KRtq73q8U7n5IHAKPcCqjnkV1TLIh2/U2k0ZPTOSIhMWAIXUr8ekG1i9 | |
B3MjbsBWrKUc9i/CefHAlbx7o4l8/F5sUJAYDtLtVHiLoNkUt2LTMk8H6qSG7uK+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN CERTIFICATE----- | |
MIIFnDCCA4SgAwIBAgIJAO4IZ7mkkxE9MA0GCSqGSIb3DQEBCwUAMFkxHTAbBgNV | |
BAoMFFVubGltaXRlZCBDb2RlIFdvcmtzMSIwIAYDVQQLDBlVQ1cgQ2VydGlmaWNh | |
dGUgQXV0aG9yaXR5MRQwEgYDVQQDDAtVQ1cgUm9vdCBDQTAiGA8yMDE3MTAwMTAw | |
MDAwMFoYDzIwMzcxMDAxMDAwMDAwWjBZMR0wGwYDVQQKDBRVbmxpbWl0ZWQgQ29k | |
ZSBXb3JrczEiMCAGA1UECwwZVUNXIENlcnRpZmljYXRlIEF1dGhvcml0eTEUMBIG | |
A1UEAwwLVUNXIFJvb3QgQ0EwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoIC | |
AQCeWqVg2wrNiZxEVoPc/tK/UU1fuSnxmdlrLTewE9+kLjC4MjJf2tFfygKKBe0X | |
qqFOR9UE5qmY/3KGmWD/qfuaIlOQAJrCPsN+HAQusEnwocp8pXNzApGVhv+MP+Qp | |
I6QgNVi4g2LRjB92e+q93F3vcKno06yY2PZAw303K4rQW+1D3RIJW2gnvbvz9k4A |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAhDttedrlnTe0RfFQz3VGvy5AL9De1bhRukAcPU6Rz5cTkrq7iEygaTQaGMS6SsJ96qNPNIdbBOb/25clbFDMCoB3OYHvU1SM9E1ajcDRT99uTjPI2GGfauZfOdikxwovGnmwD2o5Lzw54hRqS8bqWmEOlqnb4FIf/Djz6Z/gv4KHSE/yFqMPFdnxQxi35/b79WaYHjMX8+lhWm+A6DA2ncCuo0cOfG65/QlbIRGEOpGJKzNrbBAtBW/eQwqm6bmPNTzcPOjzu6UFbKwQApQvrTYiDU4S2fe72U0Il/4SWxa8KH1s/srPb2q/AxnT6G5T2EjwBOBRS9WAvFoYDhWj [email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
from subprocess import Popen, PIPE | |
from os import write, getcwd | |
from tempfile import TemporaryDirectory | |
from shutil import copy | |
from pathlib import Path | |
from glob import glob | |
from signal import signal, SIGINT | |
from sys import exit |