All of lore.kernel.org
 help / color / mirror / Atom feed
From: Carlos Santos <casantos@datacom.com.br>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 4/4] board/synopsys: synchronize custom inittab with BusyBox' one
Date: Mon, 11 Jun 2018 03:00:16 -0300	[thread overview]
Message-ID: <20180611060016.20755-5-casantos@datacom.com.br> (raw)
In-Reply-To: <20180611060016.20755-1-casantos@datacom.com.br>

Apply modifications made in recent commits:

- 456ea9871e busybox: add /dev/std{in, out, err} symlinks to inittab
- 13dbe73782 busybox: reduce number of mkdir calls in inittab
- 8a89d290d4 busybox: add an inittab entry to activate swap

Signed-off-by: Carlos Santos <casantos@datacom.com.br>
---
This change was tested on a VM, only. I don't have a Synopsys board.
---
 board/synopsys/axs10x/fs-overlay/etc/inittab | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/board/synopsys/axs10x/fs-overlay/etc/inittab b/board/synopsys/axs10x/fs-overlay/etc/inittab
index 43bacc6580..7412a27366 100644
--- a/board/synopsys/axs10x/fs-overlay/etc/inittab
+++ b/board/synopsys/axs10x/fs-overlay/etc/inittab
@@ -14,12 +14,16 @@
 # process   == program to run
 
 # Startup the system
-null::sysinit:/bin/mount -t proc proc /proc
-null::sysinit:/bin/mount -o remount,rw /
-null::sysinit:/bin/mkdir -p /dev/pts
-null::sysinit:/bin/mkdir -p /dev/shm
-null::sysinit:/bin/mount -a
-null::sysinit:/bin/hostname -F /etc/hostname
+::sysinit:/bin/mount -t proc proc /proc
+::sysinit:/bin/mount -o remount,rw /
+::sysinit:/bin/mkdir -p /dev/pts /dev/shm
+::sysinit:/bin/mount -a
+::sysinit:/sbin/swapon -a
+null::sysinit:/bin/ln -sf /proc/self/fd /dev/fd
+null::sysinit:/bin/ln -sf /proc/self/fd/0 /dev/stdin
+null::sysinit:/bin/ln -sf /proc/self/fd/1 /dev/stdout
+null::sysinit:/bin/ln -sf /proc/self/fd/2 /dev/stderr
+::sysinit:/bin/hostname -F /etc/hostname
 # now run any rc scripts
 ::sysinit:/etc/init.d/rcS
 
-- 
2.17.0

  parent 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 ` [Buildroot] [PATCH 1/4] sysvinit: reduce number of mkdir calls in inittab Carlos Santos
2018-06-12  9:22   ` 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 ` Carlos Santos [this message]
2018-06-12 13:01   ` [Buildroot] [PATCH 4/4] board/synopsys: synchronize custom inittab with BusyBox' one 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-5-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.