On 12/15/2015 08:55 PM, Jochen Sprickerhof wrote: > * Jonas Meurer <jo...@freesources.org> [2015-12-10 13:16]: >> Could you try to replace 'cryptsetup remove' by 'dmsetup --check close' >> and see whether the shutdown process still hangs? > > I guess you mean `dmsetup --checks remove "$dst"`, at least that's what > I've found in my unstable version of dmsetup (2:1.02.110-2). But the > result is the same, it still hangs.
If this happens, it probably means that for some reason there is missing (of ignored) "dmsetup udevcomplete" call in udev rules. This call decreases internal semaphore allowing libdevampper process to continue. (I see this in /lib/udev/rules.d/55-dm.rules on Debian, part of dmsetup package). Isn't possible that you have this rule missing, or that there are installed other udev rules interference with it? (Note that rules probably differes from device-mapper upstream.) Milan