[pkg-cryptsetup-devel] Bug#1033551: cryptsetup-bin: cryptsetup -v isLuks: doesn't work as documented

Alexis Huxley alexishuxley at gmail.com
Mon Mar 27 11:35:39 BST 2023


Package: cryptsetup-bin
Version: 2:2.6.1-1
Severity: minor
X-Debbugs-Cc: alexishuxley at gmail.com

Dear Maintainer,

Allocate a volume (in my case my only Debian 12 system uses
ZFS, but the result is the same with Debian 11 on LVM):

	testaroli# zfs create -V 100m zpool0/test
	testaroli# 

Check if it is Luks device, which of course it is not
as it's only just been created:

	testaroli# cryptsetup isLuks /dev/zvol/zpool0/test 
	testaroli# echo $?
	1
	testaroli# 

The cryptsetup-isLuks man page says regarding isLuks that 
the synopsis is:

	cryptsetup isLuks [<options>] <device>

and states:

	Use option -v to get human-readable feedback.

So here's are three calls with the '-v' first in the documented
position relative to other args and then in every other conceivable 
place:

	testaroli# cryptsetup isLuks -v /dev/zvol/zpool0/test 
	Command failed with code -1 (wrong or missing parameters).
	testaroli# cryptsetup -v isLuks /dev/zvol/zpool0/test 
	Command failed with code -1 (wrong or missing parameters).
	testaroli# cryptsetup isLuks /dev/zvol/zpool0/test -v
	Command failed with code -1 (wrong or missing parameters).
	testaroli#

All fail.

I'm happy to test new versions, etc.

Alexis

-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-6.1.0-6-amd64 root=ZFS=zpool0/root ro console=tty1 console=ttyS0,115200 ipv6.disable=1

-- /etc/fstab
UUID=0b968fd6-951e-43b3-a0af-7b5e37f25d90          /boot                    ext4       defaults,noatime,nodiratime              0 2
ZFS=zpool0/root                                    /                        ext4       errors=remount-ro,noatime,nodiratime     0 1
tmpfs                                              /tmp                     tmpfs      nodev,nosuid                             0 0
/dev/vda3                                          swap                     swap       defaults                                 0 0
zpool0/local                                       /vol/local               zfs        auto,noatime,nodiratime                  0 2
/dev/vda1                                          /boot/efi                vfat       umask=0077                               0 1

-- lsmod
Module                  Size  Used by
tls                   126976  0
nft_masq               16384  0
nft_chain_nat          16384  0
nf_nat                 57344  2 nft_masq,nft_chain_nat
nf_conntrack          188416  2 nf_nat,nft_masq
nf_defrag_ipv6         24576  1 nf_conntrack
nf_defrag_ipv4         16384  1 nf_conntrack
nf_tables             286720  2 nft_masq,nft_chain_nat
libcrc32c              16384  3 nf_conntrack,nf_nat,nf_tables
nfnetlink              20480  1 nf_tables
rfkill                 36864  1
qrtr                   49152  4
bridge                311296  0
stp                    16384  1 bridge
llc                    16384  2 bridge,stp
binfmt_misc            24576  1
nls_ascii              16384  1
nls_cp437              20480  1
vfat                   24576  1
fat                    90112  1 vfat
ext4                  983040  1
kvm_amd               155648  0
ccp                   118784  1 kvm_amd
crc16                  16384  1 ext4
mbcache                16384  1 ext4
jbd2                  167936  1 ext4
kvm                  1138688  1 kvm_amd
crc32c_generic         16384  0
irqbypass              16384  1 kvm
ghash_clmulni_intel    16384  0
sha512_ssse3           49152  0
sha512_generic         16384  1 sha512_ssse3
iTCO_wdt               16384  1
virtio_gpu             77824  0
intel_pmc_bxt          16384  1 iTCO_wdt
virtio_dma_buf         16384  1 virtio_gpu
iTCO_vendor_support    16384  1 iTCO_wdt
drm_shmem_helper       20480  1 virtio_gpu
watchdog               45056  1 iTCO_wdt
aesni_intel           393216  0
virtio_rng             16384  0
rng_core               20480  2 virtio_rng,ccp
virtio_balloon         24576  0
drm_kms_helper        204800  3 virtio_gpu
sg                     40960  0
virtio_console         40960  0
button                 24576  0
crypto_simd            16384  1 aesni_intel
evdev                  28672  2
cryptd                 28672  2 crypto_simd,ghash_clmulni_intel
serio_raw              20480  0
pcspkr                 16384  0
drm                   614400  4 drm_kms_helper,drm_shmem_helper,virtio_gpu
dm_mod                184320  0
fuse                  176128  1
loop                   32768  0
efi_pstore             16384  0
configfs               57344  1
efivarfs               24576  1
qemu_fw_cfg            20480  0
ip_tables              36864  0
x_tables               61440  1 ip_tables
autofs4                53248  2
zfs                  4005888  8
zunicode              335872  1 zfs
zzstd                 589824  1 zfs
zlua                  192512  1 zfs
zavl                   20480  1 zfs
icp                   327680  1 zfs
zcommon               110592  2 zfs,icp
znvpair               118784  2 zfs,zcommon
spl                   122880  6 zfs,icp,zzstd,znvpair,zcommon,zavl
sr_mod                 28672  0
cdrom                  81920  1 sr_mod
virtio_net             69632  0
ahci                   49152  0
libahci                49152  1 ahci
net_failover           24576  1 virtio_net
failover               16384  1 net_failover
virtio_blk             28672  6
xhci_pci               24576  0
crct10dif_pclmul       16384  0
crct10dif_common       16384  1 crct10dif_pclmul
libata                401408  2 libahci,ahci
crc32_pclmul           16384  0
xhci_hcd              315392  1 xhci_pci
scsi_mod              282624  3 libata,sg,sr_mod
i2c_i801               36864  0
psmouse               184320  0
crc32c_intel           24576  3
lpc_ich                28672  0
i2c_smbus              20480  1 i2c_i801
scsi_common            16384  4 scsi_mod,libata,sg,sr_mod
usbcore               344064  2 xhci_hcd,xhci_pci
usb_common             16384  2 xhci_hcd,usbcore
virtio_pci             24576  0
virtio_pci_legacy_dev    16384  1 virtio_pci
virtio_pci_modern_dev    20480  1 virtio_pci
virtio                 20480  7 virtio_rng,virtio_console,virtio_balloon,virtio_gpu,virtio_pci,virtio_blk,virtio_net
virtio_ring            45056  7 virtio_rng,virtio_console,virtio_balloon,virtio_gpu,virtio_pci,virtio_blk,virtio_net


-- System Information:
Debian Release: 12.0
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-6-amd64 (SMP w/2 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages cryptsetup-bin depends on:
ii  libblkid1        2.38.1-5+b1
ii  libc6            2.36-8
ii  libcryptsetup12  2:2.6.1-1
ii  libpopt0         1.19+dfsg-1
ii  libuuid1         2.38.1-5+b1

cryptsetup-bin recommends no packages.

cryptsetup-bin suggests no packages.

-- no debconf information



More information about the pkg-cryptsetup-devel mailing list