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

2014-12-28 Thread Mike Gilbert
On Sat, Dec 27, 2014 at 8:57 AM, Gabriel de Perthuis  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=
> -#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.
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


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

2014-12-27 Thread Gabriel de Perthuis
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=
-#Init=/path/to/init-binary
+Init=/usr/lib/systemd/systemd
 #PlotMemoryUsage=no
 #PlotEntropyGraph=no
 #ScaleX=100
 #ScaleY=20
 #ControlGroup=no
-- 
2.2.0.71.g3365589

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel