systemd-cryptsetup
Create or remove decrypted mappings of encrypted volumes. Equivalent of
cryptsetup openandcryptsetup close. Arguments to this command are written exactly like a line in/etc/crypttab. It's used by systemd to unlock devices on boot. See also:cryptsetup. More information: https://www.freedesktop.org/software/systemd/man/latest/systemd-cryptsetup.html.
- Open a LUKS volume and create a decrypted mapping at
/dev/mapper/mapping_name:
systemd-cryptsetup attach
- Open a LUKS volume with additional options and create a decrypted mapping at
/dev/mapper/mapping_name:
systemd-cryptsetup attach none
- Open a LUKS volume with a keyfile and create a decrypted mapping at
/dev/mapper/mapping_name:
systemd-cryptsetup attach
- Remove an existing mapping:
systemd-cryptsetup detach
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
