[pkg-cryptsetup-devel] Bug#1025136: cryptsetup: crypttab(5) encrypted swap example causes warnings
Owen T. Heisler
writer at owenh.net
Wed Nov 30 07:27:27 GMT 2022
Package: cryptsetup
Version: 2:2.3.7-1+deb11u1
Severity: minor
X-Debbugs-Cc: writer at owenh.net
Hello,
The crypttab(5) man page has an example labeled "Encrypted swap device"
that should be updated so it does not print warnings.
## Summary
The example should be updated to this (add "plain", remove "hash=sha1"):
cswap /dev/sda6 /dev/urandom plain,cipher=aes-xts-plain64,size=256,swap
Instead of this:
cswap /dev/sda6 /dev/urandom cipher=aes-xts-plain64,size=256,hash=sha1,swap
## Justification
Otherwise, cryptsetup prints these warnings:
```
# cryptdisks_start cswap
Starting crypto disk...
cryptsetup: WARNING: cswap: couldn't determine device type, assuming default (plain).
cswap (starting)...
WARNING: The --hash parameter is being ignored in plain mode with keyfile specified.
cswap (started)...done.
```
Thank you for your work on cryptsetup.
Owen
More information about the pkg-cryptsetup-devel
mailing list