]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/fido2-crypttab.sh
test: drop whitespace after shell redirection operators
[thirdparty/systemd.git] / man / fido2-crypttab.sh
CommitLineData
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).
5sudo systemd-cryptenroll --fido2-device=auto /dev/sdXn
6
7# Test: Let's run systemd-cryptsetup to test if this worked.
8sudo /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 12sudo bash -c 'echo "mytest /dev/sdXn - fido2-device=auto" >>/etc/crypttab'