summaryrefslogtreecommitdiff
path: root/src/bootchart
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2015-02-02 15:48:40 +0100
committerLennart Poettering <lennart@poettering.net>2015-02-02 17:40:35 +0100
commit6e1bf7ab998e30b23202192b5b47c119e7a3697d (patch)
treeed1fe7ff1463e5d1f06b947ca3439434d94672d4 /src/bootchart
parentbca81be7755d15e7369d764bfa94a7ca6c595c76 (diff)
bootchart: Ensure that systemd is the init called after using bootchart
When booting with systemd-bootchart, default to call the systemd binary rather than the init binary on disk, which might be another init system. Collecting data only works with booting systemd.
Diffstat (limited to 'src/bootchart')
-rw-r--r--src/bootchart/bootchart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bootchart/bootchart.c b/src/bootchart/bootchart.c
index 0808ba44ea..b49e2c9235 100644
--- a/src/bootchart/bootchart.c
+++ b/src/bootchart/bootchart.c
@@ -76,7 +76,7 @@ int sysfd=-1;
#define DEFAULT_HZ 25.0
#define DEFAULT_SCALE_X 100.0 /* 100px = 1sec */
#define DEFAULT_SCALE_Y 20.0 /* 16px = 1 process bar */
-#define DEFAULT_INIT "/sbin/init"
+#define DEFAULT_INIT ROOTLIBDIR "/systemd/systemd"
#define DEFAULT_OUTPUT "/run/log"
/* graph defaults */
@@ -326,7 +326,7 @@ int main(int argc, char *argv[]) {
/*
* If the kernel executed us through init=/usr/lib/systemd/systemd-bootchart, then
* fork:
- * - parent execs executable specified via init_path[] (/sbin/init by default) as pid=1
+ * - parent execs executable specified via init_path[] (/usr/lib/systemd/systemd by default) as pid=1
* - child logs data
*/
if (getpid() == 1) {