Skip to content

Commit

Permalink
initrdscripts: bootchart: enable config w/ bootparams
Browse files Browse the repository at this point in the history
Change-type: patch
Signed-off-by: Joseph Kogut <[email protected]>
  • Loading branch information
jakogut committed Dec 5, 2024
1 parent 34dbe1f commit 6760364
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions meta-balena-common/recipes-core/initrdscripts/files/bootchart
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,11 @@ bootchart_run() {
# it
#
# https://freedesktop.org/wiki/Software/systemd/RootStorageDaemons/
[ -n "${bootparam_bootchart_frequency}" ] \
&& sed -i "/Frequency=/c\Frequency=${bootparam_bootchart_frequency}" \
/etc/systemd/bootchart.conf
[ -n "${bootparam_bootchart_samples}" ] \
&& sed -i "/Samples=/c\Samples=${bootparam_bootchart_samples}" \
/etc/systemd/bootchart.conf
( exec /lib/systemd/systemd-bootchart ) &
}

0 comments on commit 6760364

Please sign in to comment.