Skip to contentSkip to conversation

svn commit: trunk/buildroot/target/generic/target_skeleton: etc var

Buildroot sjhill at uclibc.org 2 participants 2 messages Jan 14, 2007

lore
Share & tools
lore
#0 lore raw

Author: sjhill
Date: 2007-01-13 16:56:52 -0800 (Sat, 13 Jan 2007) New Revision: 17269

Log:
Make '/var/cache' and symbolic link to '/tmp' like the others. We'll need this for Samba and friends. Also, change mount order of filesystems during boot.

Added:
trunk/buildroot/target/generic/target_skeleton/var/cache

Modified:
trunk/buildroot/target/generic/target_skeleton/etc/inittab

Changeset:
Modified: trunk/buildroot/target/generic/target_skeleton/etc/inittab
===================================================================

buildroot/target/generic/target_skeleton/etc/inittab +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/mount -a
 null::sysinit:/bin/hostname -F /etc/hostname
 null::sysinit:/sbin/ifconfig lo 127.0.0.1 up

Added: trunk/buildroot/target/generic/target_skeleton/var/cache
===================================================================

buildroot/target/generic/target_skeleton/var/cache +1 -0
@@ -0,0 +1 @@
+link ../tmp
\ No newline at end of file

Property changes on: trunk/buildroot/target/generic/target_skeleton/var/cache
___________________________________________________________________
Name: svn:special
+ *

#1 lore raw
Quoted 16 lines · sjhill at uclibc.org

Author: sjhill
Date: 2007-01-13 16:56:52 -0800 (Sat, 13 Jan 2007) New Revision: 17269

Log:
Make '/var/cache' and symbolic link to '/tmp' like the others. We'll need this for Samba and friends. Also, change mount order of filesystems during boot.

Modified: trunk/buildroot/target/generic/target_skeleton/etc/inittab
===================================================================

buildroot/target/generic/target_skeleton/etc/inittab +1 -0
@@ -14,8 +14,8 @@
 # process   == program to run
 
 # Startup the system
+null::sysinit:/bin/mount -o remount,rw /
Quoted 6 lines

null::sysinit:/bin/mount -t proc proc /proc
-null::sysinit:/bin/mount -o remount,rw /
null::sysinit:/bin/mount -a
null::sysinit:/bin/hostname -F /etc/hostname
null::sysinit:/sbin/ifconfig lo 127.0.0.1 up

This will break any of busybox's mount impls that were written by Rob if you have the BUSYBOX_EXEC_PATH set to "/proc/self/exe", which is the default.

See http://busybox.net/cgi-bin/viewcvs.cgi?rev=16760&view=rev

What should we do?
I was planning on doing a completely separate skeleton for busybox to peruse mdev for hotplugging etc, etc. This skeleton should be smaller than the generic skel since we need only little in e.g. /dev. We need a different inittab (depending on busybox's .config :( ), of course.

Is that desirable and a worthwhile thing to have? Alternative approaches?

thanks,