summaryrefslogtreecommitdiffstats
path: root/initramfs/initrd-stuff
diff options
context:
space:
mode:
authorDirk von Suchodoletz2007-04-28 13:55:57 +0200
committerDirk von Suchodoletz2007-04-28 13:55:57 +0200
commitb3a7607012f669d8f83f24cd0d97617ceb50caae (patch)
treeaec8ad2d3884daba14fe80fafe9f26da68fd9e1c /initramfs/initrd-stuff
parentCleanups for InitRamFS: busybox is made the main tool ... (diff)
downloadcore-b3a7607012f669d8f83f24cd0d97617ceb50caae.tar.gz
core-b3a7607012f669d8f83f24cd0d97617ceb50caae.tar.xz
core-b3a7607012f669d8f83f24cd0d97617ceb50caae.zip
Major changes for stage3/initramfs: busybox is made the main tool ...
mkdxsinitrd is changed accordingly, with some fixes, cleanups to init and functions ... git-svn-id: http://svn.openslx.org/svn/openslx/trunk@936 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/initrd-stuff')
-rw-r--r--initramfs/initrd-stuff/etc/functions8
-rwxr-xr-xinitramfs/initrd-stuff/init14
2 files changed, 12 insertions, 10 deletions
diff --git a/initramfs/initrd-stuff/etc/functions b/initramfs/initrd-stuff/etc/functions
index 9265eedb..aef02ad8 100644
--- a/initramfs/initrd-stuff/etc/functions
+++ b/initramfs/initrd-stuff/etc/functions
@@ -67,8 +67,6 @@ trigger_device_events () {
# mini udev of busybox or distro specific udev_hotplug
runudev () {
if [ -x /bin/mdev ] ; then
- [ -c /dev/mem ] ||mknod /dev/mem c 1 1 2>/dev/null
- [ -c /dev/zero ] || mknod /dev/zero c 1 5 2>/dev/null
mdev -s
else
udev_hotplug
@@ -422,14 +420,10 @@ case $dhcp in
dhcpcd $vci -L /var/lib/dhcp -c /bin/dhcpcd.exe -T -t 30 eth0 \
>/dev/null 2>&1 || error "$error_dhcpcd"
;;
- pump)
- error "$error_pump"
- ;;
- # udhcpc is part of busybox; then we expect to have mknod installed
+ # udhcpc is part of busybox
udhcpc)
[ -n $vci ] && vci="-V $vci"
testmkd /usr/share/udhcpc
- test -c /dev/urandom || mknod /dev/urandom c 1 9 2>/dev/null
ln -s /bin/dhcpmkconfig /usr/share/udhcpc/default.script
udhcpc -b -q $vci -s /usr/share/udhcpc/default.script -i eth0 2>/dev/null
;;
diff --git a/initramfs/initrd-stuff/init b/initramfs/initrd-stuff/init
index abe6b428..42044d53 100755
--- a/initramfs/initrd-stuff/init
+++ b/initramfs/initrd-stuff/init
@@ -10,7 +10,7 @@
#
# General information about OpenSLX can be found at http://openslx.org
#
-# main script for new type of initial ramdisk for OpenSLX linux diskless
+# Main script for new type of initial ramdisk for OpenSLX linux stateless
# clients version 4
#############################################################################
@@ -47,8 +47,16 @@ nodnbdcache="yes"
devdir="/dev"
mount -n -t tmpfs -o 'size=25%,mode=0755' initramfsdevs ${devdir}
-# copy basic device files into dev (later udev will handle that)
-cp -a /tmp/null /tmp/console /dev
+# create basic device files in dev (later udev will handle that)
+mknod /dev/mem c 1 1
+mknod /dev/null c 1 3
+mknod /dev/zero c 1 5
+mknod /dev/urandom c 1 9
+mknod /dev/kmsg c 1 11
+mknod /dev/console c 5 1
+mknod /dev/ctl b 241 255
+mknod /dev/bootsplash p
+
mkdir -p ${devdir}/pts
mkdir -p ${devdir}/shm
mkdir -p ${devdir}/.udevdb