summaryrefslogtreecommitdiff
path: root/source/a/mkinitrd
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/mkinitrd')
-rwxr-xr-xsource/a/mkinitrd/_initrd-tree/dev/mknodes.sh18
-rw-r--r--source/a/mkinitrd/_initrd-tree/etc/fstab2
-rw-r--r--source/a/mkinitrd/_initrd-tree/etc/group44
-rw-r--r--source/a/mkinitrd/_initrd-tree/etc/nsswitch.conf42
-rw-r--r--source/a/mkinitrd/_initrd-tree/etc/passwd25
-rw-r--r--source/a/mkinitrd/_initrd-tree/etc/udev/udev.conf14
-rwxr-xr-xsource/a/mkinitrd/_initrd-tree/init0
-rw-r--r--source/a/mkinitrd/_initrd-tree/initrd-name0
-rw-r--r--source/a/mkinitrd/_initrd-tree/keymap0
-rw-r--r--source/a/mkinitrd/_initrd-tree/load_kernel_modules8
-rw-r--r--source/a/mkinitrd/_initrd-tree/luksdev0
-rw-r--r--source/a/mkinitrd/_initrd-tree/lukskey0
-rw-r--r--source/a/mkinitrd/_initrd-tree/resumedev0
-rw-r--r--source/a/mkinitrd/_initrd-tree/rootdev0
-rw-r--r--source/a/mkinitrd/_initrd-tree/rootfs0
-rwxr-xr-xsource/a/mkinitrd/_initrd-tree/sbin/mdadm7
-rw-r--r--source/a/mkinitrd/_initrd-tree/wait-for-root1
17 files changed, 161 insertions, 0 deletions
diff --git a/source/a/mkinitrd/_initrd-tree/dev/mknodes.sh b/source/a/mkinitrd/_initrd-tree/dev/mknodes.sh
new file mode 100755
index 00000000..4370db37
--- /dev/null
+++ b/source/a/mkinitrd/_initrd-tree/dev/mknodes.sh
@@ -0,0 +1,18 @@
+# Run this script in the root of the skeleton tree
+# to re-create the required device nodes
+mkdir -p dev
+mknod -m 644 dev/systty c 4 0
+mkdir -p dev
+mknod -m 644 dev/tty1 c 4 1
+mkdir -p dev
+mknod -m 644 dev/ram b 1 1
+mkdir -p dev
+mknod -m 644 dev/tty2 c 4 1
+mkdir -p dev
+mknod -m 644 dev/tty3 c 4 1
+mkdir -p dev
+mknod -m 644 dev/null c 1 3
+mkdir -p dev
+mknod -m 644 dev/tty4 c 4 1
+mkdir -p dev
+mknod -m 644 dev/console c 5 1
diff --git a/source/a/mkinitrd/_initrd-tree/etc/fstab b/source/a/mkinitrd/_initrd-tree/etc/fstab
new file mode 100644
index 00000000..90933aa6
--- /dev/null
+++ b/source/a/mkinitrd/_initrd-tree/etc/fstab
@@ -0,0 +1,2 @@
+proc /proc proc defaults 0 0
+
diff --git a/source/a/mkinitrd/_initrd-tree/etc/group b/source/a/mkinitrd/_initrd-tree/etc/group
new file mode 100644
index 00000000..c7c87313
--- /dev/null
+++ b/source/a/mkinitrd/_initrd-tree/etc/group
@@ -0,0 +1,44 @@
+root:x:0:root
+bin:x:1:root,bin
+daemon:x:2:root,bin,daemon
+sys:x:3:root,bin,adm
+adm:x:4:root,adm,daemon
+tty:x:5:
+disk:x:6:root,adm
+lp:x:7:lp
+mem:x:8:
+kmem:x:9:
+wheel:x:10:root
+floppy:x:11:root
+mail:x:12:mail
+news:x:13:news
+uucp:x:14:uucp
+man:x:15:
+dialout:x:16:uucp
+audio:x:17:root
+video:x:18:root
+cdrom:x:19:root
+games:x:20:
+slocate:x:21:
+utmp:x:22:
+smmsp:x:25:smmsp
+tape:x:26:root
+mysql:x:27:
+rpc:x:32:
+sshd:x:33:sshd
+gdm:x:42:
+shadow:x:43:
+ftp:x:50:
+oprofile:x:51:
+apache:x:80:
+messagebus:x:81:
+haldaemon:x:82:
+plugdev:x:83:root
+power:x:84:root
+netdev:x:86:root
+pop:x:90:pop
+scanner:x:93:root
+nobody:x:98:nobody
+nogroup:x:99:
+users:x:100:
+console:x:101:
diff --git a/source/a/mkinitrd/_initrd-tree/etc/nsswitch.conf b/source/a/mkinitrd/_initrd-tree/etc/nsswitch.conf
new file mode 100644
index 00000000..3d993afc
--- /dev/null
+++ b/source/a/mkinitrd/_initrd-tree/etc/nsswitch.conf
@@ -0,0 +1,42 @@
+#
+# /etc/nsswitch.conf
+#
+# An example Name Service Switch config file. This file should be
+# sorted with the most-used services at the beginning.
+#
+# The entry '[NOTFOUND=return]' means that the search for an
+# entry should stop if the search in the previous entry turned
+# up nothing. Note that if the search failed due to some other reason
+# (like no NIS server responding) then the search continues with the
+# next entry.
+#
+# Legal entries are:
+#
+# nisplus or nis+ Use NIS+ (NIS version 3)
+# nis or yp Use NIS (NIS version 2), also called YP
+# dns Use DNS (Domain Name Service)
+# files Use the local files
+# [NOTFOUND=return] Stop searching if not found so far
+#
+
+# passwd: files nis
+# shadow: files nis
+# group: files nis
+
+passwd: compat
+group: compat
+
+hosts: files dns
+networks: files
+
+services: files
+protocols: files
+rpc: files
+ethers: files
+netmasks: files
+netgroup: files
+bootparams: files
+
+automount: files
+aliases: files
+
diff --git a/source/a/mkinitrd/_initrd-tree/etc/passwd b/source/a/mkinitrd/_initrd-tree/etc/passwd
new file mode 100644
index 00000000..c8f6a72f
--- /dev/null
+++ b/source/a/mkinitrd/_initrd-tree/etc/passwd
@@ -0,0 +1,25 @@
+root:x:0:0::/root:/bin/bash
+bin:x:1:1:bin:/bin:/bin/false
+daemon:x:2:2:daemon:/sbin:/bin/false
+adm:x:3:4:adm:/var/log:/bin/false
+lp:x:4:7:lp:/var/spool/lpd:/bin/false
+sync:x:5:0:sync:/sbin:/bin/sync
+shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
+halt:x:7:0:halt:/sbin:/sbin/halt
+mail:x:8:12:mail:/:/bin/false
+news:x:9:13:news:/usr/lib/news:/bin/false
+uucp:x:10:14:uucp:/var/spool/uucppublic:/bin/false
+operator:x:11:0:operator:/root:/bin/bash
+games:x:12:100:games:/usr/games:/bin/false
+ftp:x:14:50::/home/ftp:/bin/false
+smmsp:x:25:25:smmsp:/var/spool/clientmqueue:/bin/false
+mysql:x:27:27:MySQL:/var/lib/mysql:/bin/false
+rpc:x:32:32:RPC portmap user:/:/bin/false
+sshd:x:33:33:sshd:/:/bin/false
+gdm:x:42:42:GDM:/var/state/gdm:/bin/bash
+oprofile:x:51:51:oprofile:/:/bin/false
+apache:x:80:80:User for Apache:/srv/httpd:/bin/false
+messagebus:x:81:81:User for D-BUS:/var/run/dbus:/bin/false
+haldaemon:x:82:82:User for HAL:/var/run/hald:/bin/false
+pop:x:90:90:POP:/:/bin/false
+nobody:x:99:99:nobody:/:/bin/false
diff --git a/source/a/mkinitrd/_initrd-tree/etc/udev/udev.conf b/source/a/mkinitrd/_initrd-tree/etc/udev/udev.conf
new file mode 100644
index 00000000..b0421a08
--- /dev/null
+++ b/source/a/mkinitrd/_initrd-tree/etc/udev/udev.conf
@@ -0,0 +1,14 @@
+# udev.conf
+# The main config file for udev
+#
+# This file can be used to override some of udev's default values for where it
+# looks for files, and where it places device nodes.
+
+# udev_root - where in the filesystem to place the device nodes
+udev_root="/dev/"
+
+# udev_log - The initial syslog(3) priority: "err", "info", "debug" or
+# its numerical equivalent. For runtime debugging, the daemons
+# internal state can be changed with: udevcontrol log_priority=<value>
+udev_log="err"
+
diff --git a/source/a/mkinitrd/_initrd-tree/init b/source/a/mkinitrd/_initrd-tree/init
new file mode 100755
index 00000000..e69de29b
--- /dev/null
+++ b/source/a/mkinitrd/_initrd-tree/init
diff --git a/source/a/mkinitrd/_initrd-tree/initrd-name b/source/a/mkinitrd/_initrd-tree/initrd-name
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/source/a/mkinitrd/_initrd-tree/initrd-name
diff --git a/source/a/mkinitrd/_initrd-tree/keymap b/source/a/mkinitrd/_initrd-tree/keymap
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/source/a/mkinitrd/_initrd-tree/keymap
diff --git a/source/a/mkinitrd/_initrd-tree/load_kernel_modules b/source/a/mkinitrd/_initrd-tree/load_kernel_modules
new file mode 100644
index 00000000..f5e8d31a
--- /dev/null
+++ b/source/a/mkinitrd/_initrd-tree/load_kernel_modules
@@ -0,0 +1,8 @@
+# This is a script used to load the kernel modules.
+# To use it, chmod it 755, and then add the modprobe
+# lines needed to load your modules, like this:
+#modprobe reiserfs
+# or:
+#modprobe jbd
+#modprobe ext3
+
diff --git a/source/a/mkinitrd/_initrd-tree/luksdev b/source/a/mkinitrd/_initrd-tree/luksdev
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/source/a/mkinitrd/_initrd-tree/luksdev
diff --git a/source/a/mkinitrd/_initrd-tree/lukskey b/source/a/mkinitrd/_initrd-tree/lukskey
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/source/a/mkinitrd/_initrd-tree/lukskey
diff --git a/source/a/mkinitrd/_initrd-tree/resumedev b/source/a/mkinitrd/_initrd-tree/resumedev
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/source/a/mkinitrd/_initrd-tree/resumedev
diff --git a/source/a/mkinitrd/_initrd-tree/rootdev b/source/a/mkinitrd/_initrd-tree/rootdev
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/source/a/mkinitrd/_initrd-tree/rootdev
diff --git a/source/a/mkinitrd/_initrd-tree/rootfs b/source/a/mkinitrd/_initrd-tree/rootfs
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/source/a/mkinitrd/_initrd-tree/rootfs
diff --git a/source/a/mkinitrd/_initrd-tree/sbin/mdadm b/source/a/mkinitrd/_initrd-tree/sbin/mdadm
new file mode 100755
index 00000000..9a9ef983
--- /dev/null
+++ b/source/a/mkinitrd/_initrd-tree/sbin/mdadm
@@ -0,0 +1,7 @@
+#!/bin/ash
+# Null script, used to prevent error message spew in cases where the system
+# has RAID volumes, but the real mdadm is not included on the initrd because
+# the root partition is not RAID.
+#
+# If RAID support is desired on the initrd, please rebuild it using the -R
+# option and this script will be replaced with the actual mdadm binary.
diff --git a/source/a/mkinitrd/_initrd-tree/wait-for-root b/source/a/mkinitrd/_initrd-tree/wait-for-root
new file mode 100644
index 00000000..d00491fd
--- /dev/null
+++ b/source/a/mkinitrd/_initrd-tree/wait-for-root
@@ -0,0 +1 @@
+1