pmt-ehd throws error 'crypt_format: Invalid argument'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libpam-mount (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
action: want to create an encrypted container with pmt-ehd
am@pecorino:~$ sudo pmt-ehd -f /home/am/test -x
Container size in megabytes: 100
Creating a new container at /home/am/test
Do you really want to overwrite /home/am/test? (y/n)
y
Truncating container
NOTE: Use the end-user passphrase here. DO NOT feed it a hash of a passphrase or anything otherwise fancy. pmt-ehd(8), as well as cryptsetup(8)'s luksFormat will, by default, do the master key generation and hashing themselves!
Password:
Reenter password:
crypt_format: Invalid argument
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: libpam-mount 2.16-10
ProcVersionSign
Uname: Linux 5.4.0-54-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Sat Nov 28 20:37:32 2020
InstallationDate: Installed on 2020-11-02 (25 days ago)
InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: libpam-mount
UpgradeStatus: No upgrade log present (probably fresh install)
Hello Andreas and thanks for this bug report. I can reproduce the issue you describe on Focal and Hirsute. A very similar command is given as an example in pmt-ehd's manpage (pmt-ehd(8), not installed by libpam-mount-bin but available in the source package, see [1]).
I'm marking this bug as Triaged and subscribing the Ubuntu Server Team to it.
[1] https:/ /bugs.debian. org/cgi- bin/bugreport. cgi?bug= 976154