From 6760364e921c58b2c5ded0570942cf0b920942af Mon Sep 17 00:00:00 2001 From: Joseph Kogut Date: Fri, 7 Apr 2023 15:22:46 -0700 Subject: [PATCH] initrdscripts: bootchart: enable config w/ bootparams Change-type: patch Signed-off-by: Joseph Kogut --- .../recipes-core/initrdscripts/files/bootchart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta-balena-common/recipes-core/initrdscripts/files/bootchart b/meta-balena-common/recipes-core/initrdscripts/files/bootchart index 5d6d0d5114..ce27369bcf 100644 --- a/meta-balena-common/recipes-core/initrdscripts/files/bootchart +++ b/meta-balena-common/recipes-core/initrdscripts/files/bootchart @@ -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 ) & }