Skip to content

Commit

Permalink
Trigger bootchart if ubuntu_core.bootchart is set
Browse files Browse the repository at this point in the history
in the kernel command line, instead of core.bootchart.
  • Loading branch information
alfonsosanchezbeato committed Jul 7, 2023
1 parent d4f954c commit d74f571
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ where we use the default pocket although again it might vary.

# Bootchart

It is possible to enable bootcharts by adding `core.bootchart` to the
kernel command line. The sample collector will run until the systemd
switches root, and the chart will be saved in `/run/log`. If
It is possible to enable bootcharts by adding `ubuntu_core.bootchart`
to the kernel command line. The sample collector will run until the
systemd switches root, and the chart will be saved in `/run/log`. If
bootcharts are also enabled for the core snap, that file will be
eventually moved to the `ubuntu-save` partition (see Core snap
documentation).
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Description=Stop Boot Process Profiler
DefaultDependencies=no
Before=initrd-switch-root.service
ConditionKernelCommandLine=core.bootchart
ConditionKernelCommandLine=ubuntu_core.bootchart

[Service]
Type=oneshot
Expand Down
2 changes: 1 addition & 1 deletion factory/usr/lib/systemd/system/systemd-bootchart.service
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Description=Boot Process Profiler
Documentation=man:systemd-bootchart.service(1) man:bootchart.conf(5)
DefaultDependencies=no
ConditionKernelCommandLine=core.bootchart
ConditionKernelCommandLine=ubuntu_core.bootchart

[Service]
ExecStartPre=/usr/sbin/mkdir -p /run/log
Expand Down

0 comments on commit d74f571

Please sign in to comment.