<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Boot on sugar, spice, &amp;terminal? nice</title>
    <link>https://terminal.space/tag/boot/</link>
    <description>Recent content in Boot on sugar, spice, &amp;terminal? nice</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sun, 31 Jul 2022 02:20:45 +0000</lastBuildDate>
    <atom:link href="https://terminal.space/tag/boot/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Initramfs with systemd &amp; LUKS</title>
      <link>https://terminal.space/tech/initramfs-with-systemd-luks/</link>
      <pubDate>Sun, 31 Jul 2022 02:20:45 +0000</pubDate>
      <guid>https://terminal.space/tech/initramfs-with-systemd-luks/</guid>
      <description>&lt;h2 id=&#34;tldr&#34;&gt;TL;DR&lt;/h2&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[me@mycomputer]# cat /etc/sbupdate.conf | grep &amp;#34;^CMDLINE_DEFAULT&amp;#34;&#xA;CMDLINE_DEFAULT=&amp;#34;rd.luks.uuid=c1f995f5-a8f7-47f0-b085-6d3a159e1874 rd.luks.allow-discards resume=UUID=51384ac6-f197-41d9-b8c8-c9607d7e01c8 rd.udev.log-priority=3 nvme.noacpi=1 quiet splash root=UUID=a645810c-ef87-4a9a-9239-afdeaf292e6e rw&amp;#34;&#xA;&#xA;[me@mycomputer]# cat /etc/mkinitcpio.conf | grep &amp;#34;^HOOKS&amp;#34;&#xA;HOOKS=(systemd keyboard autodetect sd-vconsole modconf block sd-encrypt lvm2 filesystems fsck)&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;My old boot process looks like this:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;UEFI (with secure boot on)&lt;/li&gt;&#xA;&lt;li&gt;systemd-boot&lt;/li&gt;&#xA;&lt;li&gt;unified kernel.efi (initramfs + kernel params + kernel all rolled into one efi and signed)&lt;/li&gt;&#xA;&lt;li&gt;initramfs (busybox)&lt;/li&gt;&#xA;&lt;li&gt;encrypt hook: detects that a password is needed -&amp;gt; prompt for password&lt;/li&gt;&#xA;&lt;li&gt;Unlock LUKS partition&lt;/li&gt;&#xA;&lt;li&gt;LVM hook detects the LUKS partition and loads the logical volume groups/volumes&lt;/li&gt;&#xA;&lt;li&gt;The root partition is loaded and control gets passed off to the real kernel&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Which was set up via the following configs:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
