[systemd-devel] systemd-bootchart, switch-root breakage
James Muir (jamesmui)
jamesmui at cisco.com
Tue Jan 14 20:21:08 UTC 2025
> **1. systemd-bootchart stops too early**
>
> According to "man systemd-bootchart", the recommended way to invoke bootchart is via a kernel parameter:
>
> init=/usr/lib/systemd/systemd-bootchart
>
> That parameter causes systemd-bootchart to be executed as the new init process when we switch into the real root filesystem.
>
> bootchart does run, but it stops too early.
>
> In /etc/systemd/bootchart.conf, I have bootchart configured to collect 1800 samples at a frequency of 10 samples per sec. It should run for about 3 minutes.
>
> When I login, the svg file is already present under /run/log (but the system has only been up for about 10 secs).
>
> Doing "grep bootchart /proc/*/cmdline" when I login shows that bootchart is not running.
I opened https://github.com/systemd/systemd-bootchart/issues/58 to track this.
The issue is worse than systemd-bootchart stopping too early. The genenerated svg is actually a zero byte file.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20250114/7234d96c/attachment.htm>
More information about the systemd-devel
mailing list