All of lore.kernel.org
 help / color / mirror / Atom feed
From: Carlos Santos <casantos@datacom.com.br>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/4] sysvinit: reduce number of mkdir calls in inittab
Date: Mon, 11 Jun 2018 03:00:13 -0300	[thread overview]
Message-ID: <20180611060016.20755-2-casantos@datacom.com.br> (raw)
In-Reply-To: <20180611060016.20755-1-casantos@datacom.com.br>

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 <F.LaRoche@pilz.de>.

Signed-off-by: Carlos Santos <casantos@datacom.com.br>
---
 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
-- 
2.17.0

  reply	other threads:[~2018-06-11  6:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-11  6:00 [Buildroot] [PATCH 0/4] synchronize initab files and enable swap on startup Carlos Santos
2018-06-11  6:00 ` Carlos Santos [this message]
2018-06-12  9:22   ` [Buildroot] [PATCH 1/4] sysvinit: reduce number of mkdir calls in inittab Peter Korsgaard
2018-06-17 15:54   ` Peter Korsgaard
2018-06-11  6:00 ` [Buildroot] [PATCH 2/4] sysvinit: add an inittab entry to activate swap Carlos Santos
2018-06-12 12:56   ` Peter Korsgaard
2018-06-17 15:54   ` Peter Korsgaard
2018-06-11  6:00 ` [Buildroot] [PATCH 3/4] busybox: " Carlos Santos
2018-06-12 12:58   ` Peter Korsgaard
2018-06-17 15:54   ` Peter Korsgaard
2018-06-11  6:00 ` [Buildroot] [PATCH 4/4] board/synopsys: synchronize custom inittab with BusyBox' one Carlos Santos
2018-06-12 13:01   ` Peter Korsgaard
2018-06-17 15:54   ` Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180611060016.20755-2-casantos@datacom.com.br \
    --to=casantos@datacom.com.br \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.