<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:lennart@poettering.net" title="Lennart Poettering <lennart@poettering.net>"> <span class="fn">Lennart Poettering</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTABUG - journalctl cannot be used when systems is not started"
href="https://bugs.freedesktop.org/show_bug.cgi?id=86034">bug 86034</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>NOTABUG
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTABUG - journalctl cannot be used when systems is not started"
href="https://bugs.freedesktop.org/show_bug.cgi?id=86034#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTABUG - journalctl cannot be used when systems is not started"
href="https://bugs.freedesktop.org/show_bug.cgi?id=86034">bug 86034</a>
from <span class="vcard"><a class="email" href="mailto:lennart@poettering.net" title="Lennart Poettering <lennart@poettering.net>"> <span class="fn">Lennart Poettering</span></a>
</span></b>
<pre>journalctl looks for the journal files in /var/log/journal/<machine-id>/. If
you boot up with a rescue OS that has a different machine ID or a different
root it hence won't find any data there.
Hence, make sure:
a) to either chroot to the host OS, and then use journalctl
--directory=/var/log/journal/<machine-id>
b) or chroot to the host OS, and then use journalctl -m
b) or to run journalctl
--directory=<pathtorootdir>/var/log/journal/<machine-id>
c) or to run journalctl --root=<pathtorootdir> -m
The "-m" swicth merges the journals of all directories in /var/log/journal/*,
hence makes it unnecessary to figure out the machine id of the host.</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>