From b3a7607012f669d8f83f24cd0d97617ceb50caae Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Sat, 28 Apr 2007 11:55:57 +0000 Subject: 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 --- initramfs/initrd-stuff/init | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'initramfs/initrd-stuff/init') 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 -- cgit v1.2.3-55-g7522