From patchwork Mon Jun 11 06:00:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 927503 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.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=datacom.com.br Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4142SM0S9Sz9ryk for ; Mon, 11 Jun 2018 16:00:50 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 8857F299F8; Mon, 11 Jun 2018 06:00:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g5fVuiFc+kFK; Mon, 11 Jun 2018 06:00:42 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id A218E28ECC; Mon, 11 Jun 2018 06:00:42 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 28EEB1C2AB3 for ; Mon, 11 Jun 2018 06:00:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 7A4E627E47 for ; Mon, 11 Jun 2018 06:00:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VT41QNQCOFi1 for ; Mon, 11 Jun 2018 06:00:36 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.datacom.com.br (mx.datacom.ind.br [177.66.5.10]) by silver.osuosl.org (Postfix) with ESMTPS id B53AD2212A for ; Mon, 11 Jun 2018 06:00:30 +0000 (UTC) Received: from mail.datacom.com.br (localhost [127.0.0.1]) by mail.datacom.com.br (Postfix) with ESMTPS id 410311BA03EE; Mon, 11 Jun 2018 03:00:50 -0300 (-03) Received: from localhost (localhost [127.0.0.1]) by mail.datacom.com.br (Postfix) with ESMTP id 2A1C51BA0422; Mon, 11 Jun 2018 03:00:50 -0300 (-03) Received: from mail.datacom.com.br ([127.0.0.1]) by localhost (mail.datacom.com.br [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id UlQBVr8ju9ce; Mon, 11 Jun 2018 03:00:50 -0300 (-03) Received: from p7-1130br.casantos.org (unknown [187.113.211.25]) by mail.datacom.com.br (Postfix) with ESMTPSA id B0D7B1BA03EE; Mon, 11 Jun 2018 03:00:49 -0300 (-03) From: Carlos Santos To: buildroot@buildroot.org Date: Mon, 11 Jun 2018 03:00:13 -0300 Message-Id: <20180611060016.20755-2-casantos@datacom.com.br> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180611060016.20755-1-casantos@datacom.com.br> References: <20180611060016.20755-1-casantos@datacom.com.br> Subject: [Buildroot] [PATCH 1/4] sysvinit: reduce number of mkdir calls in inittab X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ARC Maintainers , Adam Duskett MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The default sysvinit inittab does two separate mkdir calls to create /dev/pts and /dev/shm. Reduce this to call mkdir only once for both directories. This removes id "si3" but keeps ids "si4".."si9" intact rather than renumbering them. This would just increase the turmoil without any practical effect. Based on commit e9db8122fb, by Florian La Roche . Signed-off-by: Carlos Santos --- package/sysvinit/inittab | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package/sysvinit/inittab b/package/sysvinit/inittab index 7eaef59d9e..2ca253ad6c 100644 --- a/package/sysvinit/inittab +++ b/package/sysvinit/inittab @@ -6,8 +6,7 @@ id:3:initdefault: si0::sysinit:/bin/mount -t proc proc /proc si1::sysinit:/bin/mount -o remount,rw / -si2::sysinit:/bin/mkdir -p /dev/pts -si3::sysinit:/bin/mkdir -p /dev/shm +si2::sysinit:/bin/mkdir -p /dev/pts /dev/shm si4::sysinit:/bin/mount -a si5::sysinit:/bin/ln -sf /proc/self/fd /dev/fd 2>/dev/null si6::sysinit:/bin/ln -sf /proc/self/fd/0 /dev/stdin 2>/dev/null