From patchwork Tue Jun 5 12:36:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian La Roche X-Patchwork-Id: 925445 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.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=pilz.de Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 410WWb2sJVz9s15 for ; Tue, 5 Jun 2018 22:36:27 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id E99878A70B; Tue, 5 Jun 2018 12:36:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OdP7xIOI32f8; Tue, 5 Jun 2018 12:36:24 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 206CE8A716; Tue, 5 Jun 2018 12:36:24 +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 33A151C24C5 for ; Tue, 5 Jun 2018 12:36:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 30B2B88C1A for ; Tue, 5 Jun 2018 12:36:23 +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 Od-5J_k9lA7k for ; Tue, 5 Jun 2018 12:36:21 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail1.pilz.de (mail1.pilz.de [212.211.209.113]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 8C01788BEC for ; Tue, 5 Jun 2018 12:36:20 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.49,478,1520895600"; d="scan'208";a="734653" Received: from unknown (HELO srv-desm01) ([172.20.2.85]) by mail1.pilz.de with ESMTP; 05 Jun 2018 14:36:19 +0200 Received: from srv-dema02.de.pilz.local ([172.16.206.6]) by srv-desm01 (IBM Domino Release 9.0.1FP8) with ESMTP id 2018060514351554-3044732 ; Tue, 5 Jun 2018 14:35:15 +0200 Received: from laroche-ubuntu.de.pilz.local ([172.16.202.44]) by srv-dema02.de.pilz.local (IBM Domino Release 9.0.1FP8 HF475) with ESMTP id 2018060514361786-79485 ; Tue, 5 Jun 2018 14:36:17 +0200 From: Florian La Roche To: buildroot@buildroot.org Date: Tue, 5 Jun 2018 14:36:11 +0200 Message-Id: <20180605123611.21759-1-F.LaRoche@pilz.de> X-Mailer: git-send-email 2.17.0 X-MIMETrack: Itemize by SMTP Server on DEMA02/SRV/Pilz(Release 9.0.1FP8 HF475|July 13, 2017) at 05.06.2018 14:36:17, Serialize by ntm_grab.EXE on DEMA02/SRV/Pilz(Release 9.0.1FP8 HF475|July 13, 2017) at 05.06.2018 14:36:18, Serialize complete at 05.06.2018 14:36:18, Serialize by Router on DEMA02/SRV/Pilz(Release 9.0.1FP8 HF475|July 13, 2017) at 05.06.2018 14:36:18, Itemize by SMTP Server on desm01/dmz(Release 9.0.1FP8|February 23, 2017) at 05.06.2018 14:35:15, Serialize by Router on desm01/dmz(Release 9.0.1FP8|February 23, 2017) at 05.06.2018 14:35:15, Serialize complete at 05.06.2018 14:35:15 X-TNEFEvaluated: 1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] Use one call to mkdir to create needed directories. 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: Florian La Roche , Adam Duskett Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Reduce this to only call mkdir once to create the needed directories. Signed-off-by: Florian La Roche Signed-off-by: ... --- package/busybox/inittab | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package/busybox/inittab b/package/busybox/inittab index ef58c32f0d..7cd203de0b 100644 --- a/package/busybox/inittab +++ b/package/busybox/inittab @@ -16,8 +16,7 @@ # Startup the system ::sysinit:/bin/mount -t proc proc /proc ::sysinit:/bin/mount -o remount,rw / -::sysinit:/bin/mkdir -p /dev/pts -::sysinit:/bin/mkdir -p /dev/shm +::sysinit:/bin/mkdir -p /dev/pts /dev/shm ::sysinit:/bin/mount -a null::sysinit:/bin/ln -sf /proc/self/fd /dev/fd null::sysinit:/bin/ln -sf /proc/self/fd/0 /dev/stdin