From 34d555e6010052d84904b8005f51f4ad909ebdd7 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 8 Sep 2015 12:12:25 +0000 Subject: Add s6-setsid -qb invocation to stage 1 (thanks Dr. Willy) --- src/init/s6-linux-init-maker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/init') 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 ; -- cgit v1.2.3