[pkg-cryptsetup-devel] Bug#791944: udev: shutdown hangs because of missing swapoff

Michael Biebl biebl at debian.org
Wed Sep 30 22:04:43 UTC 2015


Control: reassign -1 cryptsetup

Am 10.07.2015 um 07:23 schrieb Jochen Sprickerhof:
> I've debugged a little more and actually it's not only enough to do a
> swapoff -a, but you need also a cryptsetup close /dev/mapper/swap0
> (sorry for forgetting it initiallly).
> The shutdown hangs in the do_close() of
> /lib/cryptsetup/cryptdisks.functions (line 556), where cryptsetup remove
> is call. Adding a -v --debug gives:
> 
> [..]
> # Initialising device-mapper backend library.
> # dm table swap0 OFW     [16384[ (*1)
> # Trying to open and read device /dev/sda5.
> # Deactivating volume swap0.
> # dm status swap0  OF   [16384] (*1)
> # Udev cookie 0xd4d9dac (semid 65536) created
> # Udev cookie 0xd4d9dac (semid 65536) incremented to 1
> # Udev cookie 0xd4d9dac (semid 65536) incremented to 2
> # Udev cookie 0xd4d9dac (semid 65536) assigned to REMOVE task(2) with flags      (0x0)
> # dm remove swap0  OF     [16384] (*1)
> # swap0: Stacking NODE_DEL [verify_udev]
> # Udev cookie 0xd4d9dac (semid 65536) decrementing to 1
> # Udev cookie 0xd4d9dac (semid 65536) waiting for zero

this looks like a cryptsetup/device-mapper issue.

Re-assigning to cryptsetup.


Michael
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20151001/1c61f6fd/attachment.sig>


More information about the pkg-cryptsetup-devel mailing list