From patchwork Wed Jan 16 21:51:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadym Kochan X-Patchwork-Id: 1026230 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="NmflC/pg"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43g10R6DYpz9sDP for ; Thu, 17 Jan 2019 08:43:03 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 662D986BDC; Wed, 16 Jan 2019 21:43:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UN2c0MdxkgnA; Wed, 16 Jan 2019 21:43:00 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 117CB86B47; Wed, 16 Jan 2019 21:43:00 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 47E891BF2EF for ; Wed, 16 Jan 2019 21:42:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4510085DDB for ; Wed, 16 Jan 2019 21:42:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZBngfrPXjIbu for ; Wed, 16 Jan 2019 21:42:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 67CF785C4A for ; Wed, 16 Jan 2019 21:42:58 +0000 (UTC) Received: by mail-lf1-f51.google.com with SMTP id a8so6132773lfk.5 for ; Wed, 16 Jan 2019 13:42:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=OrRsqrgZXgdd0Xtf/auPRBBEjMEjYnSHZBiXcnE8Vbo=; b=NmflC/pgCffMTcjnhsv9PjgjwBUzGBZzI757pQ7eqrZeV1eRfYETwDTc7TA2fRP/s/ btJwIxowf710GAqWlwuyT3kj1XTi8TOPKkcMEfWOR5BPBWpoGoSy0Mu/GvOHhvjOW51b WwrbTN4qNa9Y182og7kmpZudOmh63iXyeW3Mn/Xx31zFAjTYn8Qe2FBvw0H/5ErvPW5b 63yEmwMDsuqfaORSO3oaT7wvlpcflqcpZkAeV/qSqjsftxYejREX5lrFCTsG3GJ4ZHf+ f63pKl2h8vK+U5CLpRHAbpBq4s474Pjinp2vfvWPivr5JhzDizy4DaCX2pF0w/xRXv7F 31cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=OrRsqrgZXgdd0Xtf/auPRBBEjMEjYnSHZBiXcnE8Vbo=; b=QzoPyt7jcj7YWMql7t5mOVdM8iC5f25nNoPpulQ/AhB4o+ChRDXRUwRNYPSUZqqCXJ lif+xrTg/5lig7AdDMLMdTlZ26c48Adpm9v/pMUpimN6i/zTkajpXohFzs/lFNUmnwcm ZjirZb1yPeB12wtTOQ3FG7POrAgfMDeiEMZ4RzjwxrmyCBp2Zh/cqbiAS0khVjnpdrXc 4sSBm/MGyg8Lxf8oitRt+fS3w9ysrpOrOtfYeNhClBWx8Z7o1RBhNkusBaHIXHEhNY5N px+WOS6xDo26L2KGfzD9socALkdsdYU9smhoz3zWr2wMiZ/i1RovEmzYuUip2iL4ge7T 0G5A== X-Gm-Message-State: AJcUukdB/OPSUqW9lmOYlCVe9jNV0rJnjyVSCUhGlYKJccJnx2pE/JMb zne3FIgQcJZBGsiLl+vUGLP/jlVR X-Google-Smtp-Source: ALg8bN5pTqZItLjh7pHDgeAwAyO//VhvHdYmRtD2jYwEnt0HCAYfllugmALt9k4S88oHcv4nPZja4A== X-Received: by 2002:a19:2b54:: with SMTP id r81mr8618268lfr.34.1547674976128; Wed, 16 Jan 2019 13:42:56 -0800 (PST) Received: from vkochan-ThinkPad-T470p.lan ([213.109.80.185]) by smtp.gmail.com with ESMTPSA id p67sm1393016lfe.14.2019.01.16.13.42.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Jan 2019 13:42:55 -0800 (PST) From: Vadim Kochan To: buildroot@buildroot.org Date: Wed, 16 Jan 2019 23:51:32 +0200 Message-Id: <20190116215135.32142-1-vadim4j@gmail.com> X-Mailer: git-send-email 2.14.1 Subject: [Buildroot] [RFC 0/3] init: Add s6 as init system X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eric Le Bihan , Vadim Kochan MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Add new system init support (BR2_INIT_S6) based on s6 suite. This is very-very basic support which does not have any setup automation logic (but only getty) but it allows to install custom s6-rc services in a bit easier way by the board. All s6-rc services which were copied by rootfs-overlay or post-build will be compiled as s6-rc db into /etc/s6-rc/compiled-initial, which also has /etc/s6-rc/compiled link to easy replace it in runtime. In case if such kind of change will be merged, then may be it would be good to think about of some packages integration into s6-rc system. Vadim Kochan (3): package/s6-linux-init: Build also for the host package/s6-linux-init: Allow to install as init system package/s6-rc: Allow to integrate s6-rc services package/s6-linux-init/s6-linux-init.mk | 69 +++++++++++++++++++++++++++++++++- package/s6-rc/rc.init | 4 ++ package/s6-rc/rc.shutdown | 3 ++ package/s6-rc/s6-rc.mk | 32 ++++++++++++++++ system/Config.in | 9 ++++- 5 files changed, 114 insertions(+), 3 deletions(-) create mode 100644 package/s6-rc/rc.init create mode 100644 package/s6-rc/rc.shutdown