[pkg-cryptsetup-devel] Bug#641662: cryptsetup: assumes root is crypt

Matt Taggart taggart at debian.org
Thu Sep 15 00:25:57 UTC 2011


Package: cryptsetup
Version: 2:1.1.3-4squeeze2

I have several machines which I have upgraded from lenny to squeeze where I 
am seeing the following warnings

  cryptsetup: WARNING: failed to detect canonical device of /dev/md0
  cryptsetup: WARNING: could not determine root device from /etc/fstab

I am using cryptsetup on these machines, but the root is NOT using 
cryptsetup. Here are my fstab and crypttab

fstab:
/dev/md0        /               ext3    defaults,errors=remount-ro 0       1
/dev/mapper/swap1    none    swap    sw    0    0
/dev/mapper/swap2    none    swap    sw    0    0

crypttab:
swap1 /dev/cciss/c0d0p2 /dev/urandom cipher=serpent-xts-plain,size=256,swap
swap2 /dev/cciss/c0d1p2 /dev/urandom cipher=serpent-xts-plain,size=256,swap

It looks like the canonical_device function assumes that a device is using 
cryptsetup and tries a few ways to figure out the actual device and if it 
can't it gives up and gives these errors.

Maybe instead it could detect if a device is just a normal non-crypt disk 
and then not print anything? Or if you are worried about warning in cases 
of misconfiguration, you could print something like

  cryptsetup: WARNING: /dev/md0 does not appear to be a crypt device, 
skipping

Thanks,

-- 
Matt Taggart
taggart at debian.org







More information about the pkg-cryptsetup-devel mailing list