[pkg-cryptsetup-devel] Bug#720515: cryptsetup: Please complain loudly about invalid source devices in /etc/crypttab

Guilhem Moulin guilhem at guilhem.org
Wed Dec 9 20:35:24 UTC 2015


Control: forcemerge -1 781955 784435
Control: title -1 cryptsetup: Please complain loudly about invalid source devices in /etc/crypttab
Control: tag -1 + patch

Hi,

On Thu, 22 Aug 2013 at 23:22:27 +0200, Eduard Bloch wrote:
> The ugly side is that there is simply no warning mentioning this
> problem, and that's the first time I see something failing in such a
> way. mount accepts double quotes just fine.

The format for source devices is documented in crypttab(5):

  “The second field, source device, describes either the block special
   device or file that contains the encrypted data. Instead of giving
   the source device explicitly, the UUID is supported as well, using
   UUID=<luks_uuid>”

That being said, it's true that the hook file should warn the user that
something is fishy.  Patch enclosed.

Cheers,
-- 
Guilhem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-d-initramfs-cryptroot-hook-Display-a-warning-for-inv.patch
Type: text/x-diff
Size: 1528 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20151209/c7304f9e/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20151209/c7304f9e/attachment.sig>


More information about the pkg-cryptsetup-devel mailing list