Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger bootchart if ubuntu_core.bootchart is set #188

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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