]>
Commit | Line | Data |
---|---|---|
1fe6d37e | 1 | # SPDX-License-Identifier: MIT-0 |
f4d74c61 | 2 | |
cf1e172d LP |
3 | # Enroll the security token in the LUKS2 volume. Replace /dev/sdXn by the |
4 | # partition to use (e.g. /dev/sda1). | |
5 | sudo systemd-cryptenroll --fido2-device=auto /dev/sdXn | |
6 | ||
7 | # Test: Let's run systemd-cryptsetup to test if this worked. | |
8 | sudo /usr/lib/systemd/systemd-cryptsetup attach mytest /dev/sdXn - fido2-device=auto | |
9 | ||
10 | # If that worked, let's now add the same line persistently to /etc/crypttab, | |
11 | # for the future. | |
7a17e41d | 12 | sudo bash -c 'echo "mytest /dev/sdXn - fido2-device=auto" >>/etc/crypttab' |