[pkg-cryptsetup-devel] Bug#784881: Bug#784881: cryptsetup: WARNING: failed to detect canonical device

Guilhem Moulin guilhem at guilhem.org
Thu Oct 6 20:12:28 UTC 2016


On Thu, 06 Oct 2016 at 19:42:55 +0200, Paride Legovini wrote:
> cryptsetup: WARNING: failed to detect canonical device of /dev/sda2

For the record, the hook script gives this warning as it doesn't know
whether the device is to be unlocked at initramfs stage or not.
(Depending on what's on the device, not unlocking it initramfs stage can
render the system unbootable.)  Identifying the device by its LABEL or
UUID (or for dm devices, using the the dm name prefixed with
/dev/mapper) should be enough to take it away.

> cryptsetup: WARNING: could not determine root device from /etc/fstab

Hmm.  This, on the other hand, should not happen if you have an entry in
fstab(5) for the root mountpoint, regardless of whether the device is
encrypted or not.  Looking at the hook script's diff since 1.7.0-2 it's
unclear to me what now causes the warning to appear.  Could you share
your /etc/fstab?

-- 
Guilhem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20161006/c8906603/attachment.sig>


More information about the pkg-cryptsetup-devel mailing list