<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 - systemd stops all services but does not poweroff most of the time (race-condition?)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=89376">89376</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>systemd stops all services but does not poweroff most of the time (race-condition?)
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (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>fzacarias3k@gmail.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=113898" name="attach_113898" title="Shutdown sequence saved to /shutdown-log.txt by debug.sh">attachment 113898</a> <a href="attachment.cgi?id=113898&action=edit" title="Shutdown sequence saved to /shutdown-log.txt by debug.sh">[details]</a></span>
Shutdown sequence saved to /shutdown-log.txt by debug.sh

I'm running Debian Jessie. After the migration from sysvinit to systemd
(version 215), my laptop does not poweroff anymore. All services stop and
screen goes black but it won't turn off the power, no matter how long I wait.
*Seldomly* it does work, which makes me guess a race-condition. Reverting to
sysvinit fixes the issue, so there is a problem with systemd.

I followed the steps described here [1] to try to debug the problem myself. As
described there, the command `sync && poweroff -f` works perfectly fine,
further pointing into systemd's as the source of the problem.

I enabled the specified boot params but I don't get much log messages in dmesg
anyway. See the attachement for the output of my laptop's poweroff sequence. As
you can see, looks like systemd is trying to unmount the encrypted volume
before other file-systems.

Note that my laptop's file-system layout is just the standard full-disk
encryption employed by most (if not all) linux distros: unencrypted /boot
partition + another big partition encrypted via dmcrypt, which contains a few
LVM volumes (/, /home and swap).

I opened a bug for this on Debian's bugzilla some weeks ago [2] but it has not
been updated in a while.
Please help!

[1] <a href="http://freedesktop.org/wiki/Software/systemd/Debugging/#index2h1">http://freedesktop.org/wiki/Software/systemd/Debugging/#index2h1</a>
[2] <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=770090">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=770090</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>