<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - systemd hangs activating encrypted swap partition"
href="https://bugs.freedesktop.org/show_bug.cgi?id=72957">72957</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>systemd hangs activating encrypted swap partition
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Reporter</th>
<td>vladykin@gmail.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Product</th>
<td>systemd
</td>
</tr></table>
<p>
<div>
<pre>I have encrypted swap partition configured in /etc/crypttab:
<span class="quote">> swap /dev/sda2 /dev/urandom swap,cipher=aes,hash=sha256,size=256</span >
Based on this systemd generates two units:
- <a href="mailto:systemd-cryptsetup@swap.service">systemd-cryptsetup@swap.service</a> (calls cryptsetup and mkswap)
- dev-mapper-swap.device (requires <a href="mailto:systemd-cryptsetup@swap.service">systemd-cryptsetup@swap.service</a>).
Starting <a href="mailto:systemd-cryptsetup@swap.service">systemd-cryptsetup@swap.service</a> succeeds, but
<span class="quote">> systemctl start dev-mapper-swap.device</span >
hangs indefinitely.
In the journal I see that <a href="mailto:systemd-cryptsetup@swap.service">systemd-cryptsetup@swap.service</a> successfully executes
all commands and is marked started. But dev-mapper-swap.device does not start
and there is no clue what blocks it.
Another non-swap encrypted partition starts without any hangs or delays.
This happens on Gentoo Linux with systemd-208-r2.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>