All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Strange behaviour of inittab
@ 2011-01-18 17:55 ANDY KENNEDY
  2011-01-18 18:05 ` Lionel Landwerlin
  0 siblings, 1 reply; 6+ messages in thread
From: ANDY KENNEDY @ 2011-01-18 17:55 UTC (permalink / raw)
  To: buildroot

I'm on drugs, sorry if this post is illegible.

The original inittab included by BuildRoot looked like this:

# Startup the system
::sysinit:/bin/mount -o remount,rw /
::sysinit:/bin/mount -t proc proc /proc
::sysinit:/bin/mkdir -p /dev/pts
::sysinit:/bin/mount -a

Anyone else have a problem with this?  On my mips, I have an NFS mounted
RFS.  With the above configuration, I cannot get the system to remount
because proc is not mounted (apparently this version of BusyBox mount
requires proc????).

The fix I have done is to reverse the mounting/remounting of proc and
the RFS as follows:

# Startup the system
::sysinit:/bin/mount -t proc proc /proc
::sysinit:/bin/mount -o remount,rw /
::sysinit:/bin/mkdir -p /dev/pts
::sysinit:/bin/mount -a


The question I have is should we change the inittab from within
BuildRoot or is there really only a problem with something in my
configuration?


Andy

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] Strange behaviour of inittab
  2011-01-18 17:55 [Buildroot] Strange behaviour of inittab ANDY KENNEDY
@ 2011-01-18 18:05 ` Lionel Landwerlin
  2011-01-18 18:26   ` ANDY KENNEDY
                     ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Lionel Landwerlin @ 2011-01-18 18:05 UTC (permalink / raw)
  To: buildroot

On Tue, 2011-01-18 at 11:55 -0600, ANDY KENNEDY wrote:
> I'm on drugs, sorry if this post is illegible.
> 
> The original inittab included by BuildRoot looked like this:
> 
> # Startup the system
> ::sysinit:/bin/mount -o remount,rw /
> ::sysinit:/bin/mount -t proc proc /proc
> ::sysinit:/bin/mkdir -p /dev/pts
> ::sysinit:/bin/mount -a
> 
> Anyone else have a problem with this?  On my mips, I have an NFS mounted
> RFS.  With the above configuration, I cannot get the system to remount
> because proc is not mounted (apparently this version of BusyBox mount
> requires proc????).

All the busybox versions I've used required /proc to be mounted. In
particular /proc/filesystem which is parsed by busybox to guess the
available filesystems supported by the kernel when mounting with "-t
auto".

> 
> The fix I have done is to reverse the mounting/remounting of proc and
> the RFS as follows:
> 
> # Startup the system
> ::sysinit:/bin/mount -t proc proc /proc
> ::sysinit:/bin/mount -o remount,rw /
> ::sysinit:/bin/mkdir -p /dev/pts
> ::sysinit:/bin/mount -a
> 
> 
> The question I have is should we change the inittab from within
> BuildRoot or is there really only a problem with something in my
> configuration?
> 
> 
> Andy
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] Strange behaviour of inittab
  2011-01-18 18:05 ` Lionel Landwerlin
@ 2011-01-18 18:26   ` ANDY KENNEDY
  2011-01-21  3:41   ` [Buildroot] [PATCH] " ANDY KENNEDY
  2011-01-27 18:10   ` [Buildroot] [BuildRoot][PATCH] Resubmit Strange behavior " ANDY KENNEDY
  2 siblings, 0 replies; 6+ messages in thread
From: ANDY KENNEDY @ 2011-01-18 18:26 UTC (permalink / raw)
  To: buildroot

inittab ordering causes mount to fail on remount,rw.  inittab
changed to mount /proc first.

Signed-off-by:  Andy Kennedy <Andy.Kennedy@AdTran.com>
---
--- a/fs/skeleton/etc/inittab   2011-01-06 05:25:33.000000000 -0600
+++ b/fs/skeleton/etc/inittab   2011-01-18 12:16:18.000000000 -0600
@@ -14,8 +14,8 @@
 # process   == program to run
 
 # Startup the system
-null::sysinit:/bin/mount -o remount,rw /
 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/mount -a
 null::sysinit:/bin/hostname -F /etc/hostname

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] [PATCH] Strange behaviour of inittab
  2011-01-18 18:05 ` Lionel Landwerlin
  2011-01-18 18:26   ` ANDY KENNEDY
@ 2011-01-21  3:41   ` ANDY KENNEDY
  2011-01-27 18:10   ` [Buildroot] [BuildRoot][PATCH] Resubmit Strange behavior " ANDY KENNEDY
  2 siblings, 0 replies; 6+ messages in thread
From: ANDY KENNEDY @ 2011-01-21  3:41 UTC (permalink / raw)
  To: buildroot

inittab ordering causes mount to fail on remount,rw.  inittab
changed to mount /proc first.

Signed-off-by:  Andy Kennedy <Andy.Kennedy@AdTran.com>
---
--- a/fs/skeleton/etc/inittab   2011-01-06 05:25:33.000000000 -0600
+++ b/fs/skeleton/etc/inittab   2011-01-18 12:16:18.000000000 -0600
@@ -14,8 +14,8 @@
 # process   == program to run
 
 # Startup the system
-null::sysinit:/bin/mount -o remount,rw /
 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/mount -a
 null::sysinit:/bin/hostname -F /etc/hostname

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] [BuildRoot][PATCH] Resubmit Strange behavior of inittab
  2011-01-18 18:05 ` Lionel Landwerlin
  2011-01-18 18:26   ` ANDY KENNEDY
  2011-01-21  3:41   ` [Buildroot] [PATCH] " ANDY KENNEDY
@ 2011-01-27 18:10   ` ANDY KENNEDY
  2011-02-21 22:31     ` [Buildroot] [PATCH] " Peter Korsgaard
  2 siblings, 1 reply; 6+ messages in thread
From: ANDY KENNEDY @ 2011-01-27 18:10 UTC (permalink / raw)
  To: buildroot

inittab ordering causes mount to fail on remount,rw.  inittab
changed to mount /proc first.

Signed-off-by:  Andy Kennedy <Andy.Kennedy@AdTran.com>
---
--- a/fs/skeleton/etc/inittab   2011-01-06 05:25:33.000000000 -0600
+++ b/fs/skeleton/etc/inittab   2011-01-18 12:16:18.000000000 -0600
@@ -14,8 +14,8 @@
 # process   == program to run
 
 # Startup the system
-null::sysinit:/bin/mount -o remount,rw /
 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/mount -a
 null::sysinit:/bin/hostname -F /etc/hostname

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] [PATCH] Resubmit Strange behavior of inittab
  2011-01-27 18:10   ` [Buildroot] [BuildRoot][PATCH] Resubmit Strange behavior " ANDY KENNEDY
@ 2011-02-21 22:31     ` Peter Korsgaard
  0 siblings, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2011-02-21 22:31 UTC (permalink / raw)
  To: buildroot

>>>>> "ANDY" == ANDY KENNEDY <ANDY.KENNEDY@adtran.com> writes:

 ANDY> inittab ordering causes mount to fail on remount,rw.  inittab
 ANDY> changed to mount /proc first.

Committed, thanks - Sorry for the slow response.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-02-21 22:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-18 17:55 [Buildroot] Strange behaviour of inittab ANDY KENNEDY
2011-01-18 18:05 ` Lionel Landwerlin
2011-01-18 18:26   ` ANDY KENNEDY
2011-01-21  3:41   ` [Buildroot] [PATCH] " ANDY KENNEDY
2011-01-27 18:10   ` [Buildroot] [BuildRoot][PATCH] Resubmit Strange behavior " ANDY KENNEDY
2011-02-21 22:31     ` [Buildroot] [PATCH] " Peter Korsgaard

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.