[Bug 1481536] Re: "cryptsetup: unknown fstype, bad password or options?" error unlocking / decrypting LUKS volume at boot

Richard Hansen 1481536 at bugs.launchpad.net
Thu Dec 17 00:27:14 UTC 2015


I'm attaching another revision of the patch (v3).

Changes from v2:

  * skip calls to udev_settle() if the device of interest already
    exists
  * don't assume the unlocked device will appear after udev_settle()
    (sleep until the device appears, if necessary)
  * wait for the LVM logical volume device to appear before getting
    the filesystem type
  * remove an unnecessary call to udev_settle()
  * clean up the password retry loop (move out logic that doesn't
    belong there, move in logic that does, simplify some logic)
  * delete commented-out code

You can see the above changes individually and with (somewhat)
descriptive commit messages in my GitHub repo:
https://github.com/rhansen/ubuntu-bug1481536-cryptroot

The patched package has been uploaded to my PPA:
https://launchpad.net/~rhansen/+archive/ubuntu/bug1481536

** Patch added: "cryptsetup-1481536-v3.patch"
   https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/1481536/+attachment/4535984/+files/cryptsetup-1481536-v3.patch

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cryptsetup in Ubuntu.
https://bugs.launchpad.net/bugs/1481536

Title:
  "cryptsetup: unknown fstype, bad password or options?" error unlocking
  / decrypting LUKS volume at boot

Status in cryptsetup:
  Confirmed
Status in One Hundred Papercuts:
  Confirmed
Status in cryptsetup package in Ubuntu:
  Confirmed

Bug description:
  Since upgrading to cryptsetup-1.6.6-5ubuntu1 to replace
  cryptsetup-1.6.1-1ubuntu7 today on my Ubuntu Wily 15.10 installation,
  I have been receiving an error message at boot time after entering my
  passphrase to unlock the LUKS partition.

  I noticed that at the same time the verbiage of the prompt to enter
  the passphrase also changed, to something like "Please unlock
  <devicename>", which is a little different than before, so I'm
  guessing something in this change may have caused the error message.

  Interestingly, the error message does not impede successful system
  boot, so my suspicion is that the error is maybe not real, but just
  being incorrectly displayed.  In other words, if I successfully enter
  the passphrase, this error will appear but the system will then
  proceed to boot successfully and have the encrypted volume
  successfully mounted.

  ProblemType: Bug
  DistroRelease: Ubuntu 15.10
  Package: cryptsetup 2:1.6.6-5ubuntu1
  ProcVersionSignature: Ubuntu 4.1.0-3.3-generic 4.1.3
  Uname: Linux 4.1.0-3-generic x86_64
  ApportVersion: 2.18-0ubuntu5
  Architecture: amd64
  Date: Tue Aug  4 20:46:55 2015
  InstallationDate: Installed on 2015-05-28 (68 days ago)
  InstallationMedia: Xubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422.1)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: cryptsetup
  UpgradeStatus: No upgrade log present (probably fresh install)
  crypttab: sda3_crypt UUID=fe4c1c1f-252e-4bcc-904c-07896f9b1361 none luks,discard

To manage notifications about this bug go to:
https://bugs.launchpad.net/cryptsetup/+bug/1481536/+subscriptions



More information about the foundations-bugs mailing list