[systemd-devel] [PATCH] bootchart: ship a configuration that will boot without sysvinit compat

Mike Gilbert floppym at gentoo.org
Sun Dec 28 09:37:04 PST 2014


On Sat, Dec 27, 2014 at 8:57 AM, Gabriel de Perthuis <g2p.code at gmail.com> wrote:
> bootchart defaults to chaining to /sbin/init, which is sensible,
> but in a pure systemd environment (without systemd-sysvinit)
> will make the machine unbootable.
>
> Change the default through /etc/systemd/bootchart.conf.
> Keep the /sbin/init default in the source code, in case
> some users rely on that.
> ---
>  src/bootchart/bootchart.conf | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/bootchart/bootchart.conf b/src/bootchart/bootchart.conf
> index c73328f..61ba0c1 100644
> --- a/src/bootchart/bootchart.conf
> +++ b/src/bootchart/bootchart.conf
> @@ -14,11 +14,11 @@
>  #Samples=500
>  #Frequency=25
>  #Relative=no
>  #Filter=yes
>  #Output=<folder name, defaults to /run/log>
> -#Init=/path/to/init-binary
> +Init=/usr/lib/systemd/systemd
>  #PlotMemoryUsage=no
>  #PlotEntropyGraph=no
>  #ScaleX=100
>  #ScaleY=20
>  #ControlGroup=no

Please do not hard-code the path to systemd; it gets installed under
$(rootprefix)/lib/systemd, and rootprefix is a configure option.


More information about the systemd-devel mailing list