Skip to contentSkip to conversation

Strange behaviour of inittab

Buildroot New ANDY KENNEDY 3 participants 6 messages Jan 18, 2011 – Feb 21, 2011

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 10 lines · ANDY KENNEDY

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

Quoted 4 lines

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".

Quoted 21 lines

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

#2 lore raw

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

---

fs/skeleton/etc/inittab 2011-01-18 12:16:18.000000000 -0600 renamed from fs/skeleton/etc/inittab 2011-01-06 05:25:33.000000000 -0600 +1 -1
@@ -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
#3 lore raw

PATCH 1/1 Strange behaviour of inittab

In reply to Lionel Landwerlin

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

---

fs/skeleton/etc/inittab 2011-01-18 12:16:18.000000000 -0600 renamed from fs/skeleton/etc/inittab 2011-01-06 05:25:33.000000000 -0600 +1 -1
@@ -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
#4 lore raw

PATCH 1/1 Resubmit Strange behavior of inittab

In reply to Lionel Landwerlin

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

---

fs/skeleton/etc/inittab 2011-01-18 12:16:18.000000000 -0600 renamed from fs/skeleton/etc/inittab 2011-01-06 05:25:33.000000000 -0600 +1 -1
@@ -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
#5 lore raw

PATCH 1/1 Resubmit Strange behavior of inittab

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"ANDY" == ANDY KENNEDY <[email protected]> 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.

Signature · 1 line
Bye, Peter Korsgaard