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

2015-02-03 Thread Lennart Poettering
On Tue, 06.01.15 19:05, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote:

> On Sun, Dec 28, 2014 at 07:18:16PM +0100, Gabriel de Perthuis wrote:
> > Change the default through /etc/systemd/bootchart.conf.
> > Keep the /sbin/init default in the source code, in case
> > some users rely on that.
> No, as a rule, all files in /etc installed by systemd can only
> contain comments. Boot-with-empty-/etc would be broken otherwise.
> 
> > bootchart defaults to chaining to /sbin/init, which is sensible,
> > but in a pure systemd environment (without systemd-sysvinit)
> > will make the machine unbootable.
> bootchart is a part of systemd, so if it makes sense for us to
> use /usr/lib/systemd/systemd, than we should just change the source
> code to do it.

This has now been implemented in this patch:

http://cgit.freedesktop.org/systemd/systemd/commit/?id=6e1bf7ab998e30b23202192b5b47c119e7a3697d

Lennart

-- 
Lennart Poettering, Red Hat
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


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

2015-01-06 Thread Zbigniew Jędrzejewski-Szmek
On Sun, Dec 28, 2014 at 07:18:16PM +0100, Gabriel de Perthuis wrote:
> Change the default through /etc/systemd/bootchart.conf.
> Keep the /sbin/init default in the source code, in case
> some users rely on that.
No, as a rule, all files in /etc installed by systemd can only
contain comments. Boot-with-empty-/etc would be broken otherwise.

> bootchart defaults to chaining to /sbin/init, which is sensible,
> but in a pure systemd environment (without systemd-sysvinit)
> will make the machine unbootable.
bootchart is a part of systemd, so if it makes sense for us to
use /usr/lib/systemd/systemd, than we should just change the source
code to do it.

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


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

2014-12-28 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.
---

Updated to take the path from autotools.


 Makefile.am | 12 +++-
 src/bootchart/.gitignore|  1 +
 src/bootchart/{bootchart.conf => bootchart.conf.in} |  2 +-
 3 files changed, 9 insertions(+), 6 deletions(-)
 create mode 100644 src/bootchart/.gitignore
 rename src/bootchart/{bootchart.conf => bootchart.conf.in} (95%)

diff --git a/Makefile.am b/Makefile.am
index e1e0843..6be5c4f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4624,23 +4624,25 @@ systemd_bootchart_LDADD = \
libsystemd-shared.la
 
 rootlibexec_PROGRAMS += \
systemd-bootchart
 
-dist_pkgsysconf_DATA += \
+nodist_pkgsysconf_DATA += \
src/bootchart/bootchart.conf
 
 nodist_systemunit_DATA += \
units/systemd-bootchart.service
 
+CLEANFILES += \
+   src/bootchart/bootchart.conf \
+   units/systemd-bootchart.service
+endif
+
 EXTRA_DIST += \
+   src/bootchart/bootchart.conf.in \
units/systemd-bootchart.service.in
 
-CLEANFILES += \
-   units/systemd-bootchart.service
-endif
-
 # 
--
 if ENABLE_QUOTACHECK
 rootlibexec_PROGRAMS += \
systemd-quotacheck
 
diff --git a/src/bootchart/.gitignore b/src/bootchart/.gitignore
new file mode 100644
index 000..371b43b
--- /dev/null
+++ b/src/bootchart/.gitignore
@@ -0,0 +1 @@
+/bootchart.conf
diff --git a/src/bootchart/bootchart.conf b/src/bootchart/bootchart.conf.in
similarity index 95%
rename from src/bootchart/bootchart.conf
rename to src/bootchart/bootchart.conf.in
index c73328f..08e7071 100644
--- a/src/bootchart/bootchart.conf
+++ b/src/bootchart/bootchart.conf.in
@@ -14,11 +14,11 @@
 #Samples=500
 #Frequency=25
 #Relative=no
 #Filter=yes
 #Output=
-#Init=/path/to/init-binary
+Init=@rootlibexecdir@/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