diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-09-08 12:12:25 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-09-08 12:12:25 +0000 |
commit | 34d555e6010052d84904b8005f51f4ad909ebdd7 (patch) | |
tree | b732ae074e95dead6a42594a6d695ec1c585a196 | |
parent | 6a8e5680de416f04efac008c1a2894ca7cbff9c7 (diff) | |
download | s6-linux-init-34d555e6010052d84904b8005f51f4ad909ebdd7.tar.xz |
Add s6-setsid -qb invocation to stage 1 (thanks Dr. Willy)
-rw-r--r-- | src/init/s6-linux-init-maker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init/s6-linux-init-maker.c b/src/init/s6-linux-init-maker.c index f8d41bb..b0663e2 100644 --- a/src/init/s6-linux-init-maker.c +++ b/src/init/s6-linux-init-maker.c @@ -246,7 +246,7 @@ static inline int make_init_script (buffer *b) satmp.len = sabase ; if (buffer_put(b, "\n", 1) < 0 || buffer_puts(b, bindir) < 0 - || buffer_puts(b, "/cd /\numask 0") < 0 + || buffer_puts(b, "/cd /\ns6-setsid -qb --\numask 0") < 0 || buffer_put(b, fmt, uint_ofmt(fmt, initial_umask)) < 0 || buffer_puts(b, "\nif { s6-echo -- ") < 0 || !string_quote(&satmp, BANNER, sizeof(BANNER) - 1) < 0) return 0 ; |