summaryrefslogtreecommitdiffstats
path: root/initrd/initrd-stuff/init
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-02-08 19:28:09 +0100
committerDirk von Suchodoletz2006-02-08 19:28:09 +0100
commite5695c3fa1e7f423c8efec765cdf7f78a9d50576 (patch)
treeddc08322dcc29c9b871aabc133e5f7f16c9b3d81 /initrd/initrd-stuff/init
parentChanged pivoting mechanism to new style (run-init from klibc) ... (diff)
downloadcore-e5695c3fa1e7f423c8efec765cdf7f78a9d50576.tar.gz
core-e5695c3fa1e7f423c8efec765cdf7f78a9d50576.tar.xz
core-e5695c3fa1e7f423c8efec765cdf7f78a9d50576.zip
Major additions to preinit funktion in functions-10.1, switch over to
new pivoting/run-init completed. Fixup in a function for new udev in general functions ... git-svn-id: http://svn.openslx.org/svn/openslx/dxs/ld4@66 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd/initrd-stuff/init')
-rwxr-xr-xinitrd/initrd-stuff/init12
1 files changed, 8 insertions, 4 deletions
diff --git a/initrd/initrd-stuff/init b/initrd/initrd-stuff/init
index 324ee103..2584c993 100755
--- a/initrd/initrd-stuff/init
+++ b/initrd/initrd-stuff/init
@@ -19,12 +19,9 @@ functionality. Without this\ninit script will not run."
. /etc/sysconfig/config || ( echo -e " The distribution \
specific configuration file could not be found" && exit 1 )
-# run pre init script
-preinit
date
export PATH=/bin:/sbin:/usr/bin/:/usr/sbin
export date="08-02-2006"
-exec < /dev/console > /dev/console 2>&1
export KERNEL="@@@KERNVER@@@"
export NWMODULES="@@@NWMODULES@@@"
@@ -32,6 +29,8 @@ export DISTRO="@@@DISTRO@@@"
DEVDIR="/dev"
mount -n -t tmpfs -o 'size=25%,mode=0755' initramfsdevs ${DEVDIR}
+
+cp -a /tmp/null /tmp/console /dev
mkdir -p ${DEVDIR}/pts
mkdir -p ${DEVDIR}/shm
mkdir -p ${DEVDIR}/.udevdb
@@ -40,6 +39,12 @@ mkdir -p ${DEVDIR}/.udevdb
echo 256 > /proc/sys/kernel/real-root-dev
[ ! -d /sys/class ] && mount -n -t sysfs sysfs /sys
+# redirect console (after /dev/console is available, and /dev mounted)
+exec < /dev/console > /dev/console 2>&1
+
+# run pre init script
+preinit
+
# start device auto discovery service - distro specific function
udev_hotplug
# read kernel commandline
@@ -383,7 +388,6 @@ of this client did not finish in\n time. You might check the process list \
and list the modules loaded until\n now."
# close runlevel script for stuff to execute during early bootup
d_mkbootld close
-bash
# IP configuration is made and should not be updated automatically, udevd
# should be killed if started within init
killall -9 dhcpcd dhclient pump 2>/dev/null