[ELDK] [PATCH 5/5] Add support for cramfs based (read-only) root file systems

Wolfgang Denk wd at denx.de
Thu Apr 29 12:35:06 CEST 2010


Signed-off-by: Wolfgang Denk <wd at denx.de>
---
 Config.in                                    |    7 +++++
 Makefile                                     |    3 ++
 config/skeleton/cramfs/dev/log               |    1 +
 config/skeleton/cramfs/dev/ptyp0             |    1 +
 config/skeleton/cramfs/dev/ptyp1             |    1 +
 config/skeleton/cramfs/dev/ptyp2             |    1 +
 config/skeleton/cramfs/dev/ptyp3             |    1 +
 config/skeleton/cramfs/dev/ptyp4             |    1 +
 config/skeleton/cramfs/dev/ptyp5             |    1 +
 config/skeleton/cramfs/dev/ptyp6             |    1 +
 config/skeleton/cramfs/dev/ptyp7             |    1 +
 config/skeleton/cramfs/dev/ptyp8             |    1 +
 config/skeleton/cramfs/dev/ptyp9             |    1 +
 config/skeleton/cramfs/dev/ptypa             |    1 +
 config/skeleton/cramfs/dev/ptypb             |    1 +
 config/skeleton/cramfs/dev/ptypc             |    1 +
 config/skeleton/cramfs/dev/ptypd             |    1 +
 config/skeleton/cramfs/dev/ptype             |    1 +
 config/skeleton/cramfs/dev/ptypf             |    1 +
 config/skeleton/cramfs/dev/ttyp0             |    1 +
 config/skeleton/cramfs/dev/ttyp1             |    1 +
 config/skeleton/cramfs/dev/ttyp2             |    1 +
 config/skeleton/cramfs/dev/ttyp3             |    1 +
 config/skeleton/cramfs/dev/ttyp4             |    1 +
 config/skeleton/cramfs/dev/ttyp5             |    1 +
 config/skeleton/cramfs/dev/ttyp6             |    1 +
 config/skeleton/cramfs/dev/ttyp7             |    1 +
 config/skeleton/cramfs/dev/ttyp8             |    1 +
 config/skeleton/cramfs/dev/ttyp9             |    1 +
 config/skeleton/cramfs/dev/ttypa             |    1 +
 config/skeleton/cramfs/dev/ttypb             |    1 +
 config/skeleton/cramfs/dev/ttypc             |    1 +
 config/skeleton/cramfs/dev/ttypd             |    1 +
 config/skeleton/cramfs/dev/ttype             |    1 +
 config/skeleton/cramfs/dev/ttypf             |    1 +
 config/skeleton/cramfs/etc/ftpaccess         |   24 ++++++++++++++++
 config/skeleton/cramfs/etc/group             |   12 ++++++++
 config/skeleton/cramfs/etc/host.conf         |    1 +
 config/skeleton/cramfs/etc/hosts             |    3 ++
 config/skeleton/cramfs/etc/inetd.conf        |   10 +++++++
 config/skeleton/cramfs/etc/inittab           |   17 +++++++++++
 config/skeleton/cramfs/etc/nsswitch.conf     |    9 ++++++
 config/skeleton/cramfs/etc/pam.d/chfn        |    6 ++++
 config/skeleton/cramfs/etc/pam.d/chsh        |    6 ++++
 config/skeleton/cramfs/etc/pam.d/ftp         |    6 ++++
 config/skeleton/cramfs/etc/pam.d/kbdrate     |    4 +++
 config/skeleton/cramfs/etc/pam.d/login       |    8 +++++
 config/skeleton/cramfs/etc/pam.d/other       |    5 +++
 config/skeleton/cramfs/etc/pam.d/passwd      |    4 +++
 config/skeleton/cramfs/etc/pam.d/rexec       |    5 +++
 config/skeleton/cramfs/etc/pam.d/rlogin      |    8 +++++
 config/skeleton/cramfs/etc/pam.d/rsh         |    5 +++
 config/skeleton/cramfs/etc/pam.d/su          |   11 +++++++
 config/skeleton/cramfs/etc/pam.d/system-auth |   11 +++++++
 config/skeleton/cramfs/etc/passwd            |    7 +++++
 config/skeleton/cramfs/etc/protocols         |    9 ++++++
 config/skeleton/cramfs/etc/rc.sh             |   38 ++++++++++++++++++++++++++
 config/skeleton/cramfs/etc/resolv.conf       |    2 +
 config/skeleton/cramfs/etc/services          |   27 ++++++++++++++++++
 config/skeleton/cramfs/etc/shells            |    3 ++
 config/skeleton/cramfs/etc/terminfo/l/linux  |  Bin 0 -> 1567 bytes
 config/skeleton/cramfs/etc/xinetd.conf       |   15 ++++++++++
 config/skeleton/cramfs/etc/xinetd.d/ftpd     |   14 +++++++++
 config/skeleton/cramfs/etc/xinetd.d/telnet   |   12 ++++++++
 64 files changed, 325 insertions(+), 0 deletions(-)
 create mode 120000 config/skeleton/cramfs/dev/log
 create mode 120000 config/skeleton/cramfs/dev/ptyp0
 create mode 120000 config/skeleton/cramfs/dev/ptyp1
 create mode 120000 config/skeleton/cramfs/dev/ptyp2
 create mode 120000 config/skeleton/cramfs/dev/ptyp3
 create mode 120000 config/skeleton/cramfs/dev/ptyp4
 create mode 120000 config/skeleton/cramfs/dev/ptyp5
 create mode 120000 config/skeleton/cramfs/dev/ptyp6
 create mode 120000 config/skeleton/cramfs/dev/ptyp7
 create mode 120000 config/skeleton/cramfs/dev/ptyp8
 create mode 120000 config/skeleton/cramfs/dev/ptyp9
 create mode 120000 config/skeleton/cramfs/dev/ptypa
 create mode 120000 config/skeleton/cramfs/dev/ptypb
 create mode 120000 config/skeleton/cramfs/dev/ptypc
 create mode 120000 config/skeleton/cramfs/dev/ptypd
 create mode 120000 config/skeleton/cramfs/dev/ptype
 create mode 120000 config/skeleton/cramfs/dev/ptypf
 create mode 120000 config/skeleton/cramfs/dev/ttyp0
 create mode 120000 config/skeleton/cramfs/dev/ttyp1
 create mode 120000 config/skeleton/cramfs/dev/ttyp2
 create mode 120000 config/skeleton/cramfs/dev/ttyp3
 create mode 120000 config/skeleton/cramfs/dev/ttyp4
 create mode 120000 config/skeleton/cramfs/dev/ttyp5
 create mode 120000 config/skeleton/cramfs/dev/ttyp6
 create mode 120000 config/skeleton/cramfs/dev/ttyp7
 create mode 120000 config/skeleton/cramfs/dev/ttyp8
 create mode 120000 config/skeleton/cramfs/dev/ttyp9
 create mode 120000 config/skeleton/cramfs/dev/ttypa
 create mode 120000 config/skeleton/cramfs/dev/ttypb
 create mode 120000 config/skeleton/cramfs/dev/ttypc
 create mode 120000 config/skeleton/cramfs/dev/ttypd
 create mode 120000 config/skeleton/cramfs/dev/ttype
 create mode 120000 config/skeleton/cramfs/dev/ttypf
 create mode 100644 config/skeleton/cramfs/etc/ftpaccess
 create mode 100644 config/skeleton/cramfs/etc/ftpusers
 create mode 100644 config/skeleton/cramfs/etc/group
 create mode 100644 config/skeleton/cramfs/etc/host.conf
 create mode 100644 config/skeleton/cramfs/etc/hosts
 create mode 100644 config/skeleton/cramfs/etc/inetd.conf
 create mode 100644 config/skeleton/cramfs/etc/inittab
 create mode 100644 config/skeleton/cramfs/etc/nsswitch.conf
 create mode 100644 config/skeleton/cramfs/etc/pam.d/chfn
 create mode 100644 config/skeleton/cramfs/etc/pam.d/chsh
 create mode 100644 config/skeleton/cramfs/etc/pam.d/ftp
 create mode 100644 config/skeleton/cramfs/etc/pam.d/kbdrate
 create mode 100644 config/skeleton/cramfs/etc/pam.d/login
 create mode 100644 config/skeleton/cramfs/etc/pam.d/other
 create mode 100644 config/skeleton/cramfs/etc/pam.d/passwd
 create mode 100644 config/skeleton/cramfs/etc/pam.d/rexec
 create mode 100644 config/skeleton/cramfs/etc/pam.d/rlogin
 create mode 100644 config/skeleton/cramfs/etc/pam.d/rsh
 create mode 100644 config/skeleton/cramfs/etc/pam.d/su
 create mode 100644 config/skeleton/cramfs/etc/pam.d/system-auth
 create mode 100644 config/skeleton/cramfs/etc/passwd
 create mode 100755 config/skeleton/cramfs/etc/profile
 create mode 100644 config/skeleton/cramfs/etc/protocols
 create mode 100755 config/skeleton/cramfs/etc/rc.sh
 create mode 100644 config/skeleton/cramfs/etc/resolv.conf
 create mode 100644 config/skeleton/cramfs/etc/services
 create mode 100644 config/skeleton/cramfs/etc/shells
 create mode 100644 config/skeleton/cramfs/etc/terminfo/l/linux
 create mode 100644 config/skeleton/cramfs/etc/xinetd.conf
 create mode 100644 config/skeleton/cramfs/etc/xinetd.d/ftpd
 create mode 100644 config/skeleton/cramfs/etc/xinetd.d/telnet

diff --git a/Config.in b/Config.in
index 89cb1fe..39c965b 100644
--- a/Config.in
+++ b/Config.in
@@ -54,6 +54,13 @@ config SKEL_SELF
          This skeleton resembles what is available in the SELF package
 	 in ELDK.
 
+config SKEL_CRAMFS
+       bool "CRAMFS"
+       help
+         This skeleton creates a CRAMFS based root file system as
+         described in
+	 http://www.denx.de/wiki/view/DULG/RootFileSystemOnACramfsFileSystem
+
 config SKEL_NONE
        bool "No precanned skeleton"
 
diff --git a/Makefile b/Makefile
index 9786e27..62ceb2b 100644
--- a/Makefile
+++ b/Makefile
@@ -172,6 +172,9 @@ $(STAMP_RFSB_SKEL):	$(STAMP_CLEAN)
 	@if [ "$(SKEL_SELF)" = "y" ]; then \
 	    echo "Using SELF skeleton from 'config/skeleton/self' to populate file system" ;\
 	    ( cd config/skeleton/self ; find . | cpio -Bpdum $(BUILD_RFS) ) ;\
+	elif [ "$(SKEL_CRAMFS)" = "y" ]; then \
+	    echo "Using CRAMFS skeleton from 'config/skeleton/cramfs' to populate file system" ;\
+	    ( cd config/skeleton/cramfs ; find . | cpio -Bpdum $(BUILD_RFS) ) ;\
 	fi
 	@touch $(STAMP_RFSB_SKEL)
 
diff --git a/config/skeleton/cramfs/dev/log b/config/skeleton/cramfs/dev/log
new file mode 120000
index 0000000..695fc2e
--- /dev/null
+++ b/config/skeleton/cramfs/dev/log
@@ -0,0 +1 @@
+/var/log/log
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ptyp0 b/config/skeleton/cramfs/dev/ptyp0
new file mode 120000
index 0000000..4a2cc70
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ptyp0
@@ -0,0 +1 @@
+/tmpfs/dev/ptyp0
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ptyp1 b/config/skeleton/cramfs/dev/ptyp1
new file mode 120000
index 0000000..96427b3
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ptyp1
@@ -0,0 +1 @@
+/tmpfs/dev/ptyp1
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ptyp2 b/config/skeleton/cramfs/dev/ptyp2
new file mode 120000
index 0000000..560a4df
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ptyp2
@@ -0,0 +1 @@
+/tmpfs/dev/ptyp2
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ptyp3 b/config/skeleton/cramfs/dev/ptyp3
new file mode 120000
index 0000000..bd446fc
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ptyp3
@@ -0,0 +1 @@
+/tmpfs/dev/ptyp3
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ptyp4 b/config/skeleton/cramfs/dev/ptyp4
new file mode 120000
index 0000000..6c2f28d
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ptyp4
@@ -0,0 +1 @@
+/tmpfs/dev/ptyp4
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ptyp5 b/config/skeleton/cramfs/dev/ptyp5
new file mode 120000
index 0000000..e30fb78
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ptyp5
@@ -0,0 +1 @@
+/tmpfs/dev/ptyp5
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ptyp6 b/config/skeleton/cramfs/dev/ptyp6
new file mode 120000
index 0000000..36b1cff
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ptyp6
@@ -0,0 +1 @@
+/tmpfs/dev/ptyp6
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ptyp7 b/config/skeleton/cramfs/dev/ptyp7
new file mode 120000
index 0000000..8f8d4c4
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ptyp7
@@ -0,0 +1 @@
+/tmpfs/dev/ptyp7
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ptyp8 b/config/skeleton/cramfs/dev/ptyp8
new file mode 120000
index 0000000..3964f33
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ptyp8
@@ -0,0 +1 @@
+/tmpfs/dev/ptyp8
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ptyp9 b/config/skeleton/cramfs/dev/ptyp9
new file mode 120000
index 0000000..b4b88e9
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ptyp9
@@ -0,0 +1 @@
+/tmpfs/dev/ptyp9
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ptypa b/config/skeleton/cramfs/dev/ptypa
new file mode 120000
index 0000000..0712479
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ptypa
@@ -0,0 +1 @@
+/tmpfs/dev/ptypa
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ptypb b/config/skeleton/cramfs/dev/ptypb
new file mode 120000
index 0000000..77fceac
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ptypb
@@ -0,0 +1 @@
+/tmpfs/dev/ptypb
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ptypc b/config/skeleton/cramfs/dev/ptypc
new file mode 120000
index 0000000..b9b3a78
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ptypc
@@ -0,0 +1 @@
+/tmpfs/dev/ptypc
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ptypd b/config/skeleton/cramfs/dev/ptypd
new file mode 120000
index 0000000..62c4d8f
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ptypd
@@ -0,0 +1 @@
+/tmpfs/dev/ptypd
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ptype b/config/skeleton/cramfs/dev/ptype
new file mode 120000
index 0000000..c7262a7
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ptype
@@ -0,0 +1 @@
+/tmpfs/dev/ptype
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ptypf b/config/skeleton/cramfs/dev/ptypf
new file mode 120000
index 0000000..1905b5a
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ptypf
@@ -0,0 +1 @@
+/tmpfs/dev/ptypf
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ttyp0 b/config/skeleton/cramfs/dev/ttyp0
new file mode 120000
index 0000000..7695849
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ttyp0
@@ -0,0 +1 @@
+/tmpfs/dev/ttyp0
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ttyp1 b/config/skeleton/cramfs/dev/ttyp1
new file mode 120000
index 0000000..f761f5d
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ttyp1
@@ -0,0 +1 @@
+/tmpfs/dev/ttyp1
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ttyp2 b/config/skeleton/cramfs/dev/ttyp2
new file mode 120000
index 0000000..467436c
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ttyp2
@@ -0,0 +1 @@
+/tmpfs/dev/ttyp2
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ttyp3 b/config/skeleton/cramfs/dev/ttyp3
new file mode 120000
index 0000000..9f7a5ff
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ttyp3
@@ -0,0 +1 @@
+/tmpfs/dev/ttyp3
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ttyp4 b/config/skeleton/cramfs/dev/ttyp4
new file mode 120000
index 0000000..be2fc09
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ttyp4
@@ -0,0 +1 @@
+/tmpfs/dev/ttyp4
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ttyp5 b/config/skeleton/cramfs/dev/ttyp5
new file mode 120000
index 0000000..a07482f
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ttyp5
@@ -0,0 +1 @@
+/tmpfs/dev/ttyp5
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ttyp6 b/config/skeleton/cramfs/dev/ttyp6
new file mode 120000
index 0000000..450def5
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ttyp6
@@ -0,0 +1 @@
+/tmpfs/dev/ttyp6
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ttyp7 b/config/skeleton/cramfs/dev/ttyp7
new file mode 120000
index 0000000..ff20365
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ttyp7
@@ -0,0 +1 @@
+/tmpfs/dev/ttyp7
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ttyp8 b/config/skeleton/cramfs/dev/ttyp8
new file mode 120000
index 0000000..d7d8efa
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ttyp8
@@ -0,0 +1 @@
+/tmpfs/dev/ttyp8
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ttyp9 b/config/skeleton/cramfs/dev/ttyp9
new file mode 120000
index 0000000..6c4924f
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ttyp9
@@ -0,0 +1 @@
+/tmpfs/dev/ttyp9
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ttypa b/config/skeleton/cramfs/dev/ttypa
new file mode 120000
index 0000000..af1802e
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ttypa
@@ -0,0 +1 @@
+/tmpfs/dev/ttypa
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ttypb b/config/skeleton/cramfs/dev/ttypb
new file mode 120000
index 0000000..a1f9cfb
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ttypb
@@ -0,0 +1 @@
+/tmpfs/dev/ttypb
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ttypc b/config/skeleton/cramfs/dev/ttypc
new file mode 120000
index 0000000..8f301f7
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ttypc
@@ -0,0 +1 @@
+/tmpfs/dev/ttypc
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ttypd b/config/skeleton/cramfs/dev/ttypd
new file mode 120000
index 0000000..a4eaa3b
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ttypd
@@ -0,0 +1 @@
+/tmpfs/dev/ttypd
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ttype b/config/skeleton/cramfs/dev/ttype
new file mode 120000
index 0000000..1ed219d
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ttype
@@ -0,0 +1 @@
+/tmpfs/dev/ttype
\ No newline at end of file
diff --git a/config/skeleton/cramfs/dev/ttypf b/config/skeleton/cramfs/dev/ttypf
new file mode 120000
index 0000000..132e473
--- /dev/null
+++ b/config/skeleton/cramfs/dev/ttypf
@@ -0,0 +1 @@
+/tmpfs/dev/ttypf
\ No newline at end of file
diff --git a/config/skeleton/cramfs/etc/ftpaccess b/config/skeleton/cramfs/etc/ftpaccess
new file mode 100644
index 0000000..26c5239
--- /dev/null
+++ b/config/skeleton/cramfs/etc/ftpaccess
@@ -0,0 +1,24 @@
+class   all   real,guest,anonymous  *
+
+email root at localhost
+
+loginfails 5
+
+readme  README*    login
+readme  README*    cwd=*
+
+message /welcome.msg            login
+message .message                cwd=*
+
+compress        yes             all
+tar             yes             all
+chmod		no		guest,anonymous
+delete		no		guest,anonymous
+overwrite	no		guest,anonymous
+rename		no		guest,anonymous
+
+log transfers anonymous,real inbound,outbound
+
+shutdown /etc/shutmsg
+
+passwd-check rfc822 warn
diff --git a/config/skeleton/cramfs/etc/ftpusers b/config/skeleton/cramfs/etc/ftpusers
new file mode 100644
index 0000000..e69de29
diff --git a/config/skeleton/cramfs/etc/group b/config/skeleton/cramfs/etc/group
new file mode 100644
index 0000000..d1a6fa8
--- /dev/null
+++ b/config/skeleton/cramfs/etc/group
@@ -0,0 +1,12 @@
+root:*:0:root
+bin:*:1:root,bin,daemon
+daemon:*:2:root,bin,daemon
+sys:*:3:root,bin
+tty:*:5:
+disk:*:6:root
+lp:*:7:daemon
+mem:*:8:
+kmem:*:9:
+ftp:*:50:
+nobody:*:99:
+users:*:100:
diff --git a/config/skeleton/cramfs/etc/host.conf b/config/skeleton/cramfs/etc/host.conf
new file mode 100644
index 0000000..5cdde5e
--- /dev/null
+++ b/config/skeleton/cramfs/etc/host.conf
@@ -0,0 +1 @@
+order hosts,bind
diff --git a/config/skeleton/cramfs/etc/hosts b/config/skeleton/cramfs/etc/hosts
new file mode 100644
index 0000000..95600d3
--- /dev/null
+++ b/config/skeleton/cramfs/etc/hosts
@@ -0,0 +1,3 @@
+127.0.0.1	localhost
+192.168.1.1	pollux
+192.168.20.12	qong
diff --git a/config/skeleton/cramfs/etc/inetd.conf b/config/skeleton/cramfs/etc/inetd.conf
new file mode 100644
index 0000000..71d6934
--- /dev/null
+++ b/config/skeleton/cramfs/etc/inetd.conf
@@ -0,0 +1,10 @@
+echo	stream	tcp	nowait	root	internal
+echo	dgram	udp	wait	root	internal
+discard stream	tcp	nowait	root	internal
+discard dgram	udp	wait	root	internal
+daytime stream	tcp	nowait	root	internal
+daytime dgram	udp	wait	root	internal
+chargen stream	tcp	nowait	root	internal
+chargen dgram	udp	wait	root	internal
+ftp	stream	tcp	nowait	root	/bin/ftpd	ftpd
+telnet	stream	tcp	nowait	root	/bin/telnetd	telnetd -L /bin/login
diff --git a/config/skeleton/cramfs/etc/inittab b/config/skeleton/cramfs/etc/inittab
new file mode 100644
index 0000000..3aa1990
--- /dev/null
+++ b/config/skeleton/cramfs/etc/inittab
@@ -0,0 +1,17 @@
+# This is run first except when booting in single-user mode.
+::sysinit:/etc/rc.sh
+
+# /bin/sh invocations on selected ttys
+#
+# Start an "askfirst" shell on /dev/ttyS1
+#ttyS1::askfirst:-/bin/sh
+
+#
+# Start internet super daemon; do NOT background!
+#::respawn:/usr/sbin/xinetd -stayalive -reuse -pidfile /tmp/xinetd.pid
+
+# Start user application
+::respawn:/bin/application
+# Must be last 'respawn' entry to avoid ^C problem
+# Start a shell on the console
+::respawn:-/bin/sh
diff --git a/config/skeleton/cramfs/etc/nsswitch.conf b/config/skeleton/cramfs/etc/nsswitch.conf
new file mode 100644
index 0000000..8085c43
--- /dev/null
+++ b/config/skeleton/cramfs/etc/nsswitch.conf
@@ -0,0 +1,9 @@
+passwd:	    files
+shadow:	    files
+group:	    files
+hosts:	    files
+ethers:	    files
+netmasks:   files
+networks:   files
+protocols:  files
+services:   files
diff --git a/config/skeleton/cramfs/etc/pam.d/chfn b/config/skeleton/cramfs/etc/pam.d/chfn
new file mode 100644
index 0000000..c55c45b
--- /dev/null
+++ b/config/skeleton/cramfs/etc/pam.d/chfn
@@ -0,0 +1,6 @@
+#%PAM-1.0
+auth       sufficient   /lib/security/pam_rootok.so
+auth       required	/lib/security/pam_stack.so service=system-auth
+account    required	/lib/security/pam_stack.so service=system-auth
+password   required	/lib/security/pam_stack.so service=system-auth
+session    required	/lib/security/pam_stack.so service=system-auth
diff --git a/config/skeleton/cramfs/etc/pam.d/chsh b/config/skeleton/cramfs/etc/pam.d/chsh
new file mode 100644
index 0000000..c55c45b
--- /dev/null
+++ b/config/skeleton/cramfs/etc/pam.d/chsh
@@ -0,0 +1,6 @@
+#%PAM-1.0
+auth       sufficient   /lib/security/pam_rootok.so
+auth       required	/lib/security/pam_stack.so service=system-auth
+account    required	/lib/security/pam_stack.so service=system-auth
+password   required	/lib/security/pam_stack.so service=system-auth
+session    required	/lib/security/pam_stack.so service=system-auth
diff --git a/config/skeleton/cramfs/etc/pam.d/ftp b/config/skeleton/cramfs/etc/pam.d/ftp
new file mode 100644
index 0000000..7bb5d0c
--- /dev/null
+++ b/config/skeleton/cramfs/etc/pam.d/ftp
@@ -0,0 +1,6 @@
+#%PAM-1.0
+auth       required	/lib/security/pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
+auth       required	/lib/security/pam_stack.so service=system-auth
+auth       required	/lib/security/pam_shells.so
+account    required	/lib/security/pam_stack.so service=system-auth
+session    required	/lib/security/pam_stack.so service=system-auth
diff --git a/config/skeleton/cramfs/etc/pam.d/kbdrate b/config/skeleton/cramfs/etc/pam.d/kbdrate
new file mode 100644
index 0000000..d8550e5
--- /dev/null
+++ b/config/skeleton/cramfs/etc/pam.d/kbdrate
@@ -0,0 +1,4 @@
+#%PAM-1.0
+auth       sufficient	/lib/security/pam_rootok.so
+auth       required	/lib/security/pam_console.so
+account    required	/lib/security/pam_permit.so
diff --git a/config/skeleton/cramfs/etc/pam.d/login b/config/skeleton/cramfs/etc/pam.d/login
new file mode 100644
index 0000000..94585ab
--- /dev/null
+++ b/config/skeleton/cramfs/etc/pam.d/login
@@ -0,0 +1,8 @@
+#%PAM-1.0
+auth       required	/lib/security/pam_securetty.so
+auth       required	/lib/security/pam_stack.so service=system-auth
+auth       required	/lib/security/pam_nologin.so
+account    required	/lib/security/pam_stack.so service=system-auth
+password   required	/lib/security/pam_stack.so service=system-auth
+session    required	/lib/security/pam_stack.so service=system-auth
+session    optional	/lib/security/pam_console.so
diff --git a/config/skeleton/cramfs/etc/pam.d/other b/config/skeleton/cramfs/etc/pam.d/other
new file mode 100644
index 0000000..0b1f6a8
--- /dev/null
+++ b/config/skeleton/cramfs/etc/pam.d/other
@@ -0,0 +1,5 @@
+#%PAM-1.0
+auth     required       /lib/security/pam_deny.so
+account  required       /lib/security/pam_deny.so
+password required       /lib/security/pam_deny.so
+session  required       /lib/security/pam_deny.so
diff --git a/config/skeleton/cramfs/etc/pam.d/passwd b/config/skeleton/cramfs/etc/pam.d/passwd
new file mode 100644
index 0000000..d1a1c3b
--- /dev/null
+++ b/config/skeleton/cramfs/etc/pam.d/passwd
@@ -0,0 +1,4 @@
+#%PAM-1.0
+auth       required	/lib/security/pam_stack.so service=system-auth
+account    required	/lib/security/pam_stack.so service=system-auth
+password   required	/lib/security/pam_stack.so service=system-auth
diff --git a/config/skeleton/cramfs/etc/pam.d/rexec b/config/skeleton/cramfs/etc/pam.d/rexec
new file mode 100644
index 0000000..80ec222
--- /dev/null
+++ b/config/skeleton/cramfs/etc/pam.d/rexec
@@ -0,0 +1,5 @@
+#%PAM-1.0
+auth       required	/lib/security/pam_securetty.so
+auth       required	/lib/security/pam_stack.so service=system-auth
+auth       required	/lib/security/pam_nologin.so
+account    required	/lib/security/pam_stack.so service=system-auth
diff --git a/config/skeleton/cramfs/etc/pam.d/rlogin b/config/skeleton/cramfs/etc/pam.d/rlogin
new file mode 100644
index 0000000..49745f9
--- /dev/null
+++ b/config/skeleton/cramfs/etc/pam.d/rlogin
@@ -0,0 +1,8 @@
+#%PAM-1.0
+auth       sufficient	/lib/security/pam_rhosts_auth.so
+auth       required	/lib/security/pam_securetty.so
+auth       required	/lib/security/pam_stack.so service=system-auth
+auth       required	/lib/security/pam_nologin.so
+account    required	/lib/security/pam_stack.so service=system-auth
+password   required	/lib/security/pam_stack.so service=system-auth
+session    required	/lib/security/pam_stack.so service=system-auth
diff --git a/config/skeleton/cramfs/etc/pam.d/rsh b/config/skeleton/cramfs/etc/pam.d/rsh
new file mode 100644
index 0000000..b9c2899
--- /dev/null
+++ b/config/skeleton/cramfs/etc/pam.d/rsh
@@ -0,0 +1,5 @@
+#%PAM-1.0
+auth       required	/lib/security/pam_rhosts_auth.so
+auth       required	/lib/security/pam_nologin.so
+account    required	/lib/security/pam_stack.so service=system-auth
+session    required	/lib/security/pam_stack.so service=system-auth
diff --git a/config/skeleton/cramfs/etc/pam.d/su b/config/skeleton/cramfs/etc/pam.d/su
new file mode 100644
index 0000000..70f8c95
--- /dev/null
+++ b/config/skeleton/cramfs/etc/pam.d/su
@@ -0,0 +1,11 @@
+#%PAM-1.0
+auth       sufficient   /lib/security/pam_rootok.so
+# Uncomment the following line to implicitly trust users in the "wheel" group.
+#auth       sufficient   /lib/security/pam_wheel.so trust use_uid
+# Uncomment the following line to require a user to be in the "wheel" group.
+#auth       required     /lib/security/pam_wheel.so use_uid
+auth       required	/lib/security/pam_stack.so service=system-auth
+account    required	/lib/security/pam_stack.so service=system-auth
+password   required	/lib/security/pam_stack.so service=system-auth
+session    required	/lib/security/pam_stack.so service=system-auth
+session    optional	/lib/security/pam_xauth.so
diff --git a/config/skeleton/cramfs/etc/pam.d/system-auth b/config/skeleton/cramfs/etc/pam.d/system-auth
new file mode 100644
index 0000000..0a17ae8
--- /dev/null
+++ b/config/skeleton/cramfs/etc/pam.d/system-auth
@@ -0,0 +1,11 @@
+#%PAM-1.0
+# This file is auto-generated.
+# User changes will be destroyed the next time authconfig is run.
+auth        sufficient    /lib/security/pam_unix.so likeauth nullok md5
+auth        required      /lib/security/pam_deny.so
+account     sufficient    /lib/security/pam_unix.so
+account     required      /lib/security/pam_deny.so
+password    required      /lib/security/pam_cracklib.so retry=3
+password    sufficient    /lib/security/pam_unix.so nullok use_authtok md5
+password    required      /lib/security/pam_deny.so
+session     required      /lib/security/pam_unix.so
diff --git a/config/skeleton/cramfs/etc/passwd b/config/skeleton/cramfs/etc/passwd
new file mode 100644
index 0000000..92aa134
--- /dev/null
+++ b/config/skeleton/cramfs/etc/passwd
@@ -0,0 +1,7 @@
+root:$1$KLhNmW89$T1WMWbgTB/Dfrx0FdS465.:0:0:root:/:/bin/sh
+bin:*:1:1:bin:/bin:
+daemon:*:2:2:daemon:/sbin:
+halt:*:7:0:halt:/sbin:/sbin/halt
+ftp:*:14:50:FTP User:/
+nobody:*:99:99:Nobody:/:
+target:$1$x4Rc1j78$n5FVlLwarSyMYoZaMlijU1:200:100:Test User:/home:/bin/sh
diff --git a/config/skeleton/cramfs/etc/profile b/config/skeleton/cramfs/etc/profile
new file mode 100755
index 0000000..e69de29
diff --git a/config/skeleton/cramfs/etc/protocols b/config/skeleton/cramfs/etc/protocols
new file mode 100644
index 0000000..7f20dfc
--- /dev/null
+++ b/config/skeleton/cramfs/etc/protocols
@@ -0,0 +1,9 @@
+ip	0	IP	# internet protocol, pseudo protocol number
+icmp	1	ICMP	# internet control message protocol
+igmp	2	IGMP	# internet group multicast protocol
+ggp	3	GGP	# gateway-gateway protocol
+tcp	6	TCP	# transmission control protocol
+pup	12	PUP	# PARC universal packet protocol
+udp	17	UDP	# user datagram protocol
+idp	22	IDP	# WhatsThis?
+raw	255	RAW	# RAW IP interface
diff --git a/config/skeleton/cramfs/etc/rc.sh b/config/skeleton/cramfs/etc/rc.sh
new file mode 100755
index 0000000..6a23bc3
--- /dev/null
+++ b/config/skeleton/cramfs/etc/rc.sh
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+/sbin/ifconfig lo 127.0.0.1
+
+# mount /proc so "reboot" works
+/bin/mount -t proc proc /proc
+
+# mount TMPFS because root-fs is readonly
+/bin/mount -t tmpfs -o size=4M tmpfs /tmpfs
+
+mkdir -p /tmpfs/tmp /tmpfs/dev \
+	 /tmpfs/var/lib/dhcp /tmpfs/var/lock /tmpfs/var/run
+
+while read name minor
+do
+	mknod /tmpfs/dev/ptyp$name c 2 $minor
+	mknod /tmpfs/dev/ttyp$name c 3 $minor
+done <<__EOD__
+0  0
+1  1
+2  2
+3  3
+4  4
+5  5
+6  6
+7  7
+8  8
+9  9
+a 10
+b 11
+c 12
+d 13
+e 14
+f 15
+__EOD__
+chmod 0666 /tmpfs/dev/*
+
+/usr/sbin/xinetd -stayalive -reuse -pidfile /tmp/xinetd.pid
diff --git a/config/skeleton/cramfs/etc/resolv.conf b/config/skeleton/cramfs/etc/resolv.conf
new file mode 100644
index 0000000..873bb24
--- /dev/null
+++ b/config/skeleton/cramfs/etc/resolv.conf
@@ -0,0 +1,2 @@
+search local.net
+nameserver 10.0.0.1
diff --git a/config/skeleton/cramfs/etc/services b/config/skeleton/cramfs/etc/services
new file mode 100644
index 0000000..fea1cb4
--- /dev/null
+++ b/config/skeleton/cramfs/etc/services
@@ -0,0 +1,27 @@
+#
+tcpmux		1/tcp
+echo		7/tcp
+echo		7/udp
+discard		9/tcp		sink null
+discard		9/udp		sink null
+systat		11/tcp		users
+daytime		13/tcp
+daytime		13/udp
+chargen		19/tcp		ttytst source
+chargen		19/udp		ttytst source
+ftp-data	20/tcp
+ftp		21/tcp
+telnet		23/tcp
+smtp		25/tcp		mail
+time		37/tcp		timserver
+time		37/udp		timserver
+name		42/udp		nameserver
+whois		43/tcp		nicname
+domain		53/tcp
+domain		53/udp
+bootps		67/udp
+bootpc		68/udp
+tftp		69/udp
+http		80/tcp
+www		80/tcp
+hostnames	101/tcp		hostname
diff --git a/config/skeleton/cramfs/etc/shells b/config/skeleton/cramfs/etc/shells
new file mode 100644
index 0000000..e2263d1
--- /dev/null
+++ b/config/skeleton/cramfs/etc/shells
@@ -0,0 +1,3 @@
+/bin/bash2
+/bin/bash
+/bin/sh
diff --git a/config/skeleton/cramfs/etc/terminfo/l/linux b/config/skeleton/cramfs/etc/terminfo/l/linux
new file mode 100644
index 0000000000000000000000000000000000000000..2d8bca22c59a1531a23e6785eedf60875e9f634a
GIT binary patch
literal 1567
zcmbu9O=uHQ5Xa{|3r3+(i=s9Z6x~Ddqq}c+^Fgf9YDq9HYA;noQAuhW%}4E*t!<+P
zQA7`V=|MdRB7zq!dJqJ)8ucIup8Ps`QYc01p%;xa?`;xo6<fMw{_~r8vpa8RAE{!?
zp&BY+n7!o5M7p<sNa~tcCf%J$wgE8wp~=gEVhH)X3+->03${Tet^sf;gB4H(Ye9n=
z%vjI>A&5W=@_uMTO+X3;U>GT%AAxglQPO1?g{w%{;U?UMJMaJ=$@~j=1#jT3<WlF)
z7*9C4N%Y@~>(lT97BLqqXO(Ovt7hw14Xb4q%jf-Qb*!F+(9;!hyozS)Zd`9>QKu^Y
zkLr|@?`C~$gq>k$*?IN_a}$5mPZpyoB#Y1P_It+npY=j*-5l!*^)r2tH}DAG%UgIW
zkMRW0 at ZJSJab|}?JUGwip5_<$B|gfp%=5lNzlHc4PS0C>Y);)D@^QWx%E2Ag5?ZIB
z#RFQW(BfT~FxyeW?&vOb5j65nQK*EfJ`77S6-EmRJBez<z@?%NjPw}t4z%s1oR4yQ
z(3;Q;BZX>{ND at R=2a1o#TNH~(Zgd}lp;M>_l(&)?2w5v+UC^fHc5?j|q3g9<akUXn
zp_*BgdNjEoVNj at I+GBJlNdt=Er4_>`)lVvP$r4GZ)I(sCs5dO9QOGUQ+ev6DKqI(g
z?$%~-`zWI(9tXFV#z#f;Dq4{4=?QqX0HHv%6q=>1g=nj+jVKg)5DkT1M4v)GWigGj
z3d0iY5`qmC8<%ZbwRyGv at le^}u_M#%Upww5ULSpb>~Zo#>Ph-}Cfk`ip6kkWAMAP7
zd%th|#MAzJ15+oz4SpJWH+(Jo6CZK_&C24RB~C>SRA7WGCn4legq)m^lQZR%O+huL
ttT$!7K}QQGfd?;+bBTJ=C_xV$4l>gpu>ACqX*#AHCPh|})XAX(@C$_&G`j!*

literal 0
HcmV?d00001

diff --git a/config/skeleton/cramfs/etc/xinetd.conf b/config/skeleton/cramfs/etc/xinetd.conf
new file mode 100644
index 0000000..0b5efd2
--- /dev/null
+++ b/config/skeleton/cramfs/etc/xinetd.conf
@@ -0,0 +1,15 @@
+#
+# Simple configuration file for xinetd
+#
+# Some defaults, and include /etc/xinetd.d/
+
+defaults
+{
+	instances               = 10
+        log_type                = SYSLOG authpriv
+        log_on_success		= HOST PID
+        log_on_failure		= HOST
+	cps			= 25 30
+}
+
+includedir /etc/xinetd.d
diff --git a/config/skeleton/cramfs/etc/xinetd.d/ftpd b/config/skeleton/cramfs/etc/xinetd.d/ftpd
new file mode 100644
index 0000000..4b9b760
--- /dev/null
+++ b/config/skeleton/cramfs/etc/xinetd.d/ftpd
@@ -0,0 +1,14 @@
+# description: The FTP server serves FTP connections. It uses \
+#	normal, unencrypted usernames and passwords for authentication.
+service ftp
+{
+	socket_type		= stream
+	wait			= no
+	user			= root
+	server			= /usr/sbin/in.ftpd
+	server_args		= -l -a
+	log_on_success		+= DURATION USERID
+	log_on_failure		+= USERID
+	nice			= 10
+	disable		= no
+}
diff --git a/config/skeleton/cramfs/etc/xinetd.d/telnet b/config/skeleton/cramfs/etc/xinetd.d/telnet
new file mode 100644
index 0000000..024c48e
--- /dev/null
+++ b/config/skeleton/cramfs/etc/xinetd.d/telnet
@@ -0,0 +1,12 @@
+# description: The telnet server serves telnet sessions; it uses \
+#	unencrypted username/password pairs for authentication.
+service telnet
+{
+	flags		= REUSE
+	socket_type	= stream        
+	wait		= no
+	user		= root
+	server		= /usr/sbin/in.telnetd
+	log_on_failure	+= USERID
+	disable		= no
+}
-- 
1.6.2.5



More information about the eldk mailing list