mirror of
https://github.com/systemd/systemd.git
synced 2024-11-27 04:03:36 +08:00
7a17e41dcf
(The one case that is left unchanged is '< <(subcommand)'.) This way, the style with no gap was already dominant. This way, the reader immediately knows that ' < ' is a comparison operator and ' << ' is a shift. In a few cases, replace custom EOF replacement by just EOF. There is no point in using someting like "_EOL" unless "EOF" appears in the text.
13 lines
518 B
Bash
13 lines
518 B
Bash
# SPDX-License-Identifier: MIT-0
|
|
|
|
# Enroll the security token in the LUKS2 volume. Replace /dev/sdXn by the
|
|
# partition to use (e.g. /dev/sda1).
|
|
sudo systemd-cryptenroll --fido2-device=auto /dev/sdXn
|
|
|
|
# Test: Let's run systemd-cryptsetup to test if this worked.
|
|
sudo /usr/lib/systemd/systemd-cryptsetup attach mytest /dev/sdXn - fido2-device=auto
|
|
|
|
# If that worked, let's now add the same line persistently to /etc/crypttab,
|
|
# for the future.
|
|
sudo bash -c 'echo "mytest /dev/sdXn - fido2-device=auto" >>/etc/crypttab'
|