<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - cryptsetup hangs in initramfs"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=90662">90662</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>cryptsetup hangs in initramfs
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>systemd
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>evangelos@foutrelis.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=116046" name="attach_116046" title="strace of the cryptsetup command that hangs">attachment 116046</a> <a href="attachment.cgi?id=116046&action=edit" title="strace of the cryptsetup command that hangs">[details]</a></span>
strace of the cryptsetup command that hangs

As part of the process of decrypting the root volume during early boot,
'cryptsetup open --type luks /path/to/dev root' is executed while we're still
in the initramfs and before switch_root is called.

Starting with systemd 220 this call hangs and boot never continues. Attached is
a screen shot of the end of the strace output.

Git bisect shows the *parent* commit of
<a href="https://github.com/systemd/systemd/commit/cb49a4f2dd53">https://github.com/systemd/systemd/commit/cb49a4f2dd53</a> as the last working
revision. While testing commit cb49a4f2dd53, 'udevadm settle' would hang,
though that's not the case with v220 or git master. I might check the range
cb49a4f2dd53..master to see if there's a point where the both the 'udevadm
settle' command and cryptsetup work.

This is possibly related to <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - cryptsetup: indefinite wait for encrypted swap device"
   href="show_bug.cgi?id=90656">bug 90656</a>.</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>