has anyone had any luck encrypting their root partition and unlocking it with a yubikey on boot? im tired of typing in the passphrase on my laptop on boot.

  • simplefluorine [he/him]@hexbear.net
    link
    fedilink
    English
    arrow-up
    2
    ·
    8 hours ago

    It depends on your bootloader for the decryption piece. for arch its not too bad, your two basic steps with systemd are

    1. add luks keyslot for your storage
    2. add components needed to decrypt to bootloader

    So for arch number 1 looks like

    sudo systemd-cryptenroll /dev/nvme0[or whatever block dev looks like] --fido2-device=auto

    and number 2 is putting sd-encrypt as a bootloader (mkinitcpio) module and then updating crypttab

    heres a decent tutorial: https://mhdez.com/posts/unlocking-encrypted-linux-with-a-yubikey/