From e5695c3fa1e7f423c8efec765cdf7f78a9d50576 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Wed, 8 Feb 2006 18:28:09 +0000 Subject: 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 --- initrd/initrd-stuff/init | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'initrd/initrd-stuff/init') 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 -- cgit v1.2.3-55-g7522