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

2016-10-07 Thread Guilhem Moulin
On Thu, 06 Oct 2016 at 22:12:28 +0200, Guilhem Moulin wrote: > Looking at the hook script's diff since 1.7.0-2 it's unclear to me > what now causes the warning to appear. For the record, this is because up to 2:1.7.0-1 get_fs_devices() used to prefix the list of underlying devices with a space "

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

2016-10-07 Thread Guilhem Moulin
On Fri, 07 Oct 2016 at 11:55:35 +0200, Paride Legovini wrote: > but I'm not sure of what happens when several devices contain a > filesystem with the same UUID. I guess this is the reason for using > devids instead of the uuid. In the case of multiple devices the output > of btrfs filesystem show

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

2016-10-07 Thread Paride Legovini
On 2016-10-07 11:30, Guilhem Moulin wrote: >> Perhaps we should add a --no-simplify to that loop? > > Hmm but we'll still want unambiguous crypttab(5) lookups. It's > unfortunate that `btrfs filesystem` lists /dev/sda2 while the FS > actually uses device UUIDs internally. I think we need to

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

2016-10-07 Thread Guilhem Moulin
On Fri, 07 Oct 2016 at 10:15:55 +0200, Paride Legovini wrote: > $(canonical_device "$device" --no-simplify) resolves the UUID entry to > /dev/sda2, then btrfs is asked to show the list of devices relevant for > the filesystem contained in that device. (btrfs filesystems can span on > several

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

2016-10-07 Thread Paride Legovini
OK, I think the problem happens with with btrfs specifically. In get_fs_devices() we have this loop (cryptroot:32): https://paste.debian.net/858017/ In line 5: $(canonical_device "$device" --no-simplify) resolves the UUID entry to /dev/sda2, then btrfs is asked to show the list of devices

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

2016-10-07 Thread Paride Legovini
On 2016-10-06 22:12, Guilhem Moulin wrote: > 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

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

2016-10-06 Thread Guilhem Moulin
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