[pkg-cryptsetup-devel] Bug#1144805: cryptsetup: crypttab(5) has incorrect first example "WARNING: The --hash parameter is being ignored"

Russell Coker russell at coker.com.au
Wed Aug 19 01:00:14 BST 2026


Package: cryptsetup
Version: 2:2.8.7-1
Severity: minor

EXAMPLES
         # Encrypted swap device
         cswap /dev/sda6 /dev/urandom plain,cipher=aes-xts-plain64,size=256,hash=sha1,swap

The above is from crypttab(5), the below is what I used in my crypttab:
cswap /dev/sda1 /dev/urandom plain,cipher=aes-xts-plain64,size=256,hash=sha1,swap

# cryptdisks_start cswap
Starting crypto disk...cswap (starting)...WARNING: The --hash parameter is being ignored in plain mode with keyfile specified.
cswap (started)...done.

I believe that when I copy something exactly from an example in a man page I
should get no errors and no warnings.

-- Package-specific info:

-- System Information:
Debian Release: forky/sid
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 7.2-amd64 (SMP w/22 CPU threads; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages cryptsetup depends on:
ii  cryptsetup-bin         2:2.8.7-1
ii  debconf [debconf-2.0]  1.5.92
ii  dmsetup                2:1.02.205-2+b2
ii  libc6                  2.43-3

cryptsetup recommends no packages.

Versions of packages cryptsetup suggests:
ii  cryptsetup-initramfs    2:2.8.7-1
ii  dosfstools              4.2-1.2
ii  keyutils                1.6.3-6+b2
ii  liblocale-gettext-perl  1.07-7+b1

-- Configuration Files:
/etc/init.d/cryptdisks [Errno 13] Permission denied: '/etc/init.d/cryptdisks'
/etc/init.d/cryptdisks-early [Errno 13] Permission denied: '/etc/init.d/cryptdisks-early'

-- no debconf information



More information about the pkg-cryptsetup-devel mailing list