Bug#791944: udev: shutdown hangs because of missing swapoff
Jochen Sprickerhof
debian-bts at jochen.sprickerhof.de
Fri Jul 10 06:23:04 BST 2015
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20150710/8e83fa43/attachment-0002.sig>
More information about the Pkg-systemd-maintainers
mailing list