<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Installation on Documentation</title><link>https://docs.daper.io/install-linux/installation/index.html</link><description>Recent content in Installation on Documentation</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><atom:link href="https://docs.daper.io/install-linux/installation/index.xml" rel="self" type="application/rss+xml"/><item><title>Convert to LUKS2</title><link>https://docs.daper.io/install-linux/installation/convert-luks2/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.daper.io/install-linux/installation/convert-luks2/index.html</guid><description>When installing, select the option to install with encryption, this will install Manjaro with LUKS1 encryption. After successful installation, do not restart the system. Instead open a terminal and umount and close the partitions.
umount /dev/mapper/luks-* cryptsetup close /dev/mapper/luks-* Then convert both partitions to LUKS2 with
# root cryptsetup convert --type luks2 /dev/nvmen0p2 # swap cryptsetup convert --type luks2 /dev/nvmen0p3</description></item><item><title>Systemd Boot</title><link>https://docs.daper.io/install-linux/installation/systemd-boot/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.daper.io/install-linux/installation/systemd-boot/index.html</guid><description>Convert Grub to Systemd-boot https://saligrama.io/blog/post/upgrading-personal-security-evil-maid/
Now chroot on your new system.
cryptsetup open /dev/nvme0n1p2 root mount /dev/mapper/root /mnt cd /mnt mount /dev/nvme0n1p1 efi mount -t proc /proc proc/ mount --rbind /sys sys/ mount --rbind /dev dev/ chroot . And execute pacman -Rc grub to remove grub.
Make place for $esp
mkdir /efi Create a variable (efidevice) for the terminal session holding the identity of your $esp partition
efidevice=$(findmnt /boot/efi -no SOURCE) Unmount $esp from the current mountpoint</description></item><item><title>Yubikey FIDO2</title><link>https://docs.daper.io/install-linux/installation/yubikey-fido2/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.daper.io/install-linux/installation/yubikey-fido2/index.html</guid><description> https://wiki.archlinux.org/title/Universal_2nd_Factor#Data-at-rest_encryption_with_LUKS https://en.opensuse.org/SDB:LUKS2,_TPM2_and_FIDO2#Decryption_using_FIDO2_2 https://saligrama.io/blog/post/upgrading-personal-security-evil-maid/ https://bbs.archlinux.org/viewtopic.php?id=265134
Install Manjaro with disk encryption and boot to the newly installed system. Now install dependencies:
yay -S libfido2 This will install also libcbor as dependency.
Now enroll both partitions with:
systemd-cryptenroll --fido2-device=auto /dev/nvme0n1p2 systemd-cryptenroll --fido2-device=auto /dev/nvme0n1p3 That will prompt to press the yubikey few times.
Edit your /etc/kernel/cmdline or create if not exists by copying from /proc/cmdline and add the following parameters:
rd.luks.name=f863ebf3-8735-48c7-88b1-e7fe1b0ae8a6=root rd.luks.options=fido2-device=auto root=/dev/mapper/root</description></item><item><title>Mkinitcpio</title><link>https://docs.daper.io/install-linux/installation/mkinitcpio/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.daper.io/install-linux/installation/mkinitcpio/index.html</guid><description>https://wiki.archlinux.org/title/Universal_2nd_Factor#Data-at-rest_encryption_with_LUKS &amp;ldquo;Since version 248, systemd can be use to unlock a LUKS partition using a FIDO2 key.&amp;rdquo;
For the current setup, this is what I have. Here it needs to ensure that the modules listed there are really necessary. Also the busybox hooks are completely removed and it depends only on systemd&amp;rsquo;s ones.
# vim:set ft=sh MODULES=&amp;#34;usbhid xhci_hcd i915&amp;#34; BINARIES=() FILES=&amp;#34;&amp;#34; HOOKS=&amp;#34;systemd autodetect block keyboard sd-vconsole sd-encrypt filesystems fsck&amp;#34; Here I created another preset at /etc/mkinitcpio.</description></item><item><title>Unified Kernel Image</title><link>https://docs.daper.io/install-linux/installation/uki/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.daper.io/install-linux/installation/uki/index.html</guid><description>https://wiki.archlinux.org/title/Unified_kernel_image
Create or edit /etc/kernel/cmdline as follows. I have changed the default crypt volumes mapping names. Ensure it has no rd.luks.* or luks.* parameters.
lang=en_US keytable=es tz=Europe/Madrid misobasedir=manjaro misolabel=MANJARO_SWAY_2204 quiet loglevel=3 systemd.show_status=auto rd.udev.log_level=3 bgrt_disable systemd.show_status=1 driver=nonfree nouveau.modeset=0 i915.modeset=1 radeon.modeset=1 root=/dev/mapper/root resume=/dev/mapper/swap Now in order to not decrypt twice the volumes. Keep the decryption key stored on /crypto_keyfile.bin. And the /etc/crypttab as follows.
# &amp;lt;name&amp;gt; &amp;lt;device&amp;gt; &amp;lt;password&amp;gt; &amp;lt;options&amp;gt; root UUID=&amp;lt;UUID&amp;gt; /crypto_keyfile.</description></item><item><title>Splash Logo</title><link>https://docs.daper.io/install-linux/installation/splash-logo/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.daper.io/install-linux/installation/splash-logo/index.html</guid><description>Convert the file to BPM truecolor with
convert &amp;#34;$1&amp;#34; -type truecolor &amp;#34;$1.bmp&amp;#34; Add the logo file to the FILES section of the /etc/mkinitcpio.conf. And the vfat module.
MODULES=&amp;#34;usbhid xhci_hcd i915 vfat&amp;#34; FILES=&amp;#34;/home/david/Pictures/logo.bmp&amp;#34; Then edit your preset(s) under /etc/mkinitcpio.d/&amp;lt;preset&amp;gt;.preset. And add the following
fallback_options=&amp;#34;-S autodetect --splash /home/david/Pictures/logo.bmp&amp;#34; default_options=&amp;#34;--splash /home/david/Pictures/logo.bmp&amp;#34;</description></item><item><title>Secure Boot</title><link>https://docs.daper.io/install-linux/installation/secure-boot/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.daper.io/install-linux/installation/secure-boot/index.html</guid><description>https://whynothugo.nl/journal/2021/06/11/a-simple-boot-setup-with-secureboot/
Go to the BIOS and enable the option to be able to update the keys. Also, if you have not done it yet, set a password for the BIOS .
# Execute the following instructions as root # 2. Install sbctl pacman -S sbctl # 3. Create a keypair # The private key in this keypair is used to sign all # EFI code loaded at boot, which means that without the # signature, you will not be able to boot into Linux.</description></item></channel></rss>