mirror of
https://github.com/clearlinux/clear-linux-documentation.git
synced 2026-04-29 03:23:42 +00:00
194 lines
10 KiB
HTML
194 lines
10 KiB
HTML
|
||
<!DOCTYPE html>
|
||
|
||
<html lang="en" data-content_root="../../">
|
||
<head>
|
||
<meta charset="utf-8" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||
|
||
<title>Capture Kernel Boot Messages in the Journal — Documentation for Clear Linux* project</title>
|
||
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
|
||
<link rel="stylesheet" type="text/css" href="../../_static/bizstyle.css?v=5283bb3d" />
|
||
<link rel="stylesheet" type="text/css" href="../../_static/copybutton.css?v=76b2166b" />
|
||
|
||
<script src="../../_static/documentation_options.js?v=5929fcd5"></script>
|
||
<script src="../../_static/doctools.js?v=9bcbadda"></script>
|
||
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
|
||
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
|
||
<script src="../../_static/copybutton.js?v=a56c686a"></script>
|
||
<script src="../../_static/bizstyle.js"></script>
|
||
<link rel="canonical" href="https://clearlinux.github.io/clear-linux-documentation/guides/kernel/kernel-boot-msg.html" />
|
||
<link rel="icon" href="../../_static/favicon.ico"/>
|
||
<link rel="author" title="About these documents" href="../../about.html" />
|
||
<link rel="index" title="Index" href="../../genindex.html" />
|
||
<link rel="search" title="Search" href="../../search.html" />
|
||
<link rel="next" title="Kernel development" href="kernel-development.html" />
|
||
<link rel="prev" title="Firmware" href="firmware.html" />
|
||
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
||
<!--[if lt IE 9]>
|
||
<script src="_static/css3-mediaqueries.js"></script>
|
||
<![endif]-->
|
||
</head><body>
|
||
<div class="related" role="navigation" aria-label="Related">
|
||
<h3>Navigation</h3>
|
||
<ul>
|
||
<li class="right" style="margin-right: 10px">
|
||
<a href="../../genindex.html" title="General Index"
|
||
accesskey="I">index</a></li>
|
||
<li class="right" >
|
||
<a href="kernel-development.html" title="Kernel development"
|
||
accesskey="N">next</a> |</li>
|
||
<li class="right" >
|
||
<a href="firmware.html" title="Firmware"
|
||
accesskey="P">previous</a> |</li>
|
||
<li class="nav-item nav-item-0"><a href="../../index.html">Documentation for Clear Linux* project</a> »</li>
|
||
<li class="nav-item nav-item-1"><a href="../index.html" accesskey="U">Guides</a> »</li>
|
||
<li class="nav-item nav-item-this"><a href="">Capture Kernel Boot Messages in the Journal</a></li>
|
||
</ul>
|
||
</div>
|
||
|
||
<div class="document">
|
||
<div class="documentwrapper">
|
||
<div class="bodywrapper">
|
||
<div class="body" role="main">
|
||
|
||
<section id="capture-kernel-boot-messages-in-the-journal">
|
||
<span id="kernel-boot-msg"></span><h1>Capture Kernel Boot Messages in the Journal<a class="headerlink" href="#capture-kernel-boot-messages-in-the-journal" title="Link to this heading">¶</a></h1>
|
||
<p>By default Clear Linux OS does not capture kernel boot messages in the journal logs,
|
||
where they’re reported as “Missed” messages. This design decision was made
|
||
to provide a faster boot performance. On the other hand, if you wish to
|
||
see the messages, follow this guide.</p>
|
||
<p>Here’s an example a journal log with “Missed” messages:</p>
|
||
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="linenos">1</span><span class="go">-- Reboot --</span>
|
||
<span class="linenos">2</span><span class="go">Apr 10 19:55:43 kernel systemd-journald[300]: Journal started</span>
|
||
<span class="linenos">3</span><span class="go">Apr 10 19:55:43 kernel systemd-journald[300]: Runtime Journal (/run/log/journal/d01862ca79d1064ea379cd715cfdd53a) is 5.8M, max 47.0M, 41.1M free.</span>
|
||
<span class="hll"><span class="linenos">4</span><span class="go">Apr 10 19:55:43 kernel systemd-journald[300]: Missed 2233 kernel messages</span>
|
||
</span><span class="linenos">5</span><span class="go">Apr 10 19:55:43 kernel systemd[1]: Started Journal Service.</span>
|
||
</pre></div>
|
||
</div>
|
||
<nav class="contents local" id="contents">
|
||
<ul class="simple">
|
||
<li><p><a class="reference internal" href="#prerequisites" id="id1">Prerequisites</a></p></li>
|
||
<li><p><a class="reference internal" href="#enable-journaling-of-kernel-boot-messages" id="id2">Enable journaling of kernel boot messages</a></p></li>
|
||
<li><p><a class="reference internal" href="#alternative" id="id3">Alternative</a></p></li>
|
||
</ul>
|
||
</nav>
|
||
<section id="prerequisites">
|
||
<h2><a class="toc-backref" href="#id1" role="doc-backlink">Prerequisites</a><a class="headerlink" href="#prerequisites" title="Link to this heading">¶</a></h2>
|
||
<ul class="simple">
|
||
<li><p><cite>systemd-journald</cite> version 245 and higher</p></li>
|
||
</ul>
|
||
</section>
|
||
<section id="enable-journaling-of-kernel-boot-messages">
|
||
<h2><a class="toc-backref" href="#id2" role="doc-backlink">Enable journaling of kernel boot messages</a><a class="headerlink" href="#enable-journaling-of-kernel-boot-messages" title="Link to this heading">¶</a></h2>
|
||
<ol class="arabic">
|
||
<li><p>Open a terminal window.</p></li>
|
||
<li><p>Create a base journald configuration file.</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo<span class="w"> </span>mkdir<span class="w"> </span>-p<span class="w"> </span>/etc/systemd/journald.conf.d
|
||
sudo<span class="w"> </span>cp<span class="w"> </span>/usr/lib/systemd/journald.conf.d/clear.conf<span class="w"> </span>/etc/systemd/journald.conf.d/
|
||
</pre></div>
|
||
</div>
|
||
</li>
|
||
<li><p>Append <strong class="command">BootKMsg=true</strong> to it.</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="nb">echo</span><span class="w"> </span><span class="s2">"BootKMsg=true"</span><span class="w"> </span><span class="p">|</span><span class="w"> </span>sudo<span class="w"> </span>tee<span class="w"> </span>-a<span class="w"> </span>/etc/systemd/journald.conf.d/clear.conf
|
||
</pre></div>
|
||
</div>
|
||
</li>
|
||
<li><p>Reboot.</p></li>
|
||
</ol>
|
||
<div class="admonition tip">
|
||
<p class="admonition-title">Tip</p>
|
||
<p>If you need to increase the kernel buffer length (for example, 1M), do this:</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo<span class="w"> </span>mkdir<span class="w"> </span>-p<span class="w"> </span>/etc/kernel/cmdline.d/
|
||
<span class="nb">echo</span><span class="w"> </span><span class="s2">"log_buf_len=1M"</span><span class="w"> </span><span class="p">|</span><span class="w"> </span>sudo<span class="w"> </span>tee<span class="w"> </span>/etc/kernel/cmdline.d/log_buf_len.conf
|
||
sudo<span class="w"> </span>clr-boot-manager<span class="w"> </span>update
|
||
</pre></div>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
<section id="alternative">
|
||
<h2><a class="toc-backref" href="#id3" role="doc-backlink">Alternative</a><a class="headerlink" href="#alternative" title="Link to this heading">¶</a></h2>
|
||
<p>An alternative is to use <strong class="command">dmesg</strong>.</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo<span class="w"> </span>dmesg
|
||
</pre></div>
|
||
</div>
|
||
</section>
|
||
</section>
|
||
|
||
|
||
<div class="clearer"></div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="sphinxsidebar" role="navigation" aria-label="Main">
|
||
<div class="sphinxsidebarwrapper">
|
||
<p class="logo"><a href="../../index.html">
|
||
<img class="logo" src="../../_static/clearlinux.png" alt="Logo of Clear Linux* Project Docs"/>
|
||
</a></p>
|
||
<div>
|
||
<h3><a href="../../index.html">Table of Contents</a></h3>
|
||
<ul>
|
||
<li><a class="reference internal" href="#">Capture Kernel Boot Messages in the Journal</a><ul>
|
||
<li><a class="reference internal" href="#prerequisites">Prerequisites</a></li>
|
||
<li><a class="reference internal" href="#enable-journaling-of-kernel-boot-messages">Enable journaling of kernel boot messages</a></li>
|
||
<li><a class="reference internal" href="#alternative">Alternative</a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
|
||
</div>
|
||
<div>
|
||
<h4>Previous topic</h4>
|
||
<p class="topless"><a href="firmware.html"
|
||
title="previous chapter">Firmware</a></p>
|
||
</div>
|
||
<div>
|
||
<h4>Next topic</h4>
|
||
<p class="topless"><a href="kernel-development.html"
|
||
title="next chapter">Kernel development</a></p>
|
||
</div>
|
||
<div role="note" aria-label="source link">
|
||
<h3>This Page</h3>
|
||
<ul class="this-page-menu">
|
||
<li><a href="../../_sources/guides/kernel/kernel-boot-msg.rst.txt"
|
||
rel="nofollow">Show Source</a></li>
|
||
</ul>
|
||
</div>
|
||
<search id="searchbox" style="display: none" role="search">
|
||
<h3 id="searchlabel">Quick search</h3>
|
||
<div class="searchformwrapper">
|
||
<form class="search" action="../../search.html" method="get">
|
||
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
|
||
<input type="submit" value="Go" />
|
||
</form>
|
||
</div>
|
||
</search>
|
||
<script>document.getElementById('searchbox').style.display = "block"</script>
|
||
</div>
|
||
</div>
|
||
<div class="clearer"></div>
|
||
</div>
|
||
<div class="related" role="navigation" aria-label="Related">
|
||
<h3>Navigation</h3>
|
||
<ul>
|
||
<li class="right" style="margin-right: 10px">
|
||
<a href="../../genindex.html" title="General Index"
|
||
>index</a></li>
|
||
<li class="right" >
|
||
<a href="kernel-development.html" title="Kernel development"
|
||
>next</a> |</li>
|
||
<li class="right" >
|
||
<a href="firmware.html" title="Firmware"
|
||
>previous</a> |</li>
|
||
<li class="nav-item nav-item-0"><a href="../../index.html">Documentation for Clear Linux* project</a> »</li>
|
||
<li class="nav-item nav-item-1"><a href="../index.html" >Guides</a> »</li>
|
||
<li class="nav-item nav-item-this"><a href="">Capture Kernel Boot Messages in the Journal</a></li>
|
||
</ul>
|
||
</div>
|
||
<div class="footer" role="contentinfo">
|
||
© Copyright 2022 Intel Corporation. All Rights Reserved..
|
||
Last updated on Nov 04, 2024.
|
||
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 8.1.3.
|
||
</div>
|
||
</body>
|
||
</html> |