summaryrefslogtreecommitdiffstats
path: root/initramfs/initrd-stuff/init
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-12-16 01:13:02 +0100
committerDirk von Suchodoletz2006-12-16 01:13:02 +0100
commit0e41494e29e20161d0e7846b79d16324b99b323f (patch)
tree93a052fac7dd27114146d07130908fd0901a444a /initramfs/initrd-stuff/init
parentUse a temp dir to download the prerequired packages. If we can't create (diff)
downloadcore-0e41494e29e20161d0e7846b79d16324b99b323f.tar.gz
core-0e41494e29e20161d0e7846b79d16324b99b323f.tar.xz
core-0e41494e29e20161d0e7846b79d16324b99b323f.zip
Enabled busybox udev service (see #99 too). Integrated for genereal use
if present in InitRamFS... git-svn-id: http://svn.openslx.org/svn/openslx/trunk@551 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/initrd-stuff/init')
-rwxr-xr-xinitramfs/initrd-stuff/init8
1 files changed, 5 insertions, 3 deletions
diff --git a/initramfs/initrd-stuff/init b/initramfs/initrd-stuff/init
index fec140c7..f29f10ba 100755
--- a/initramfs/initrd-stuff/init
+++ b/initramfs/initrd-stuff/init
@@ -65,8 +65,8 @@ NFSRO="nfs"
preinit
[ -x /bin/preinit.local ] && /bin/preinit.local
-# start device auto discovery service - distro specific function
-udev_hotplug
+# start device auto discovery service - busybox or distro specific function
+runudev
# switch off the several configuration methods, will be switched on
# according to kernel commandline settings
@@ -301,6 +301,7 @@ fi
if [ -n "${nbdmod}" ] ; then
# load block device driver if needed
modprobe ${MODPRV} ${nbdmod} || error "$init_errnbd"
+ [ -x /bin/mdev ] && mdev -s
[ -z "$nbdrfst" ] && nbdrfst=ext2
nbdhost=$(checkip $nbdhost)
echo "Diskless client using ${nbdmod} on $nbdhost:$nbdport with $nbdrfst"
@@ -311,7 +312,7 @@ if [ -n "${nbdmod}" ] ; then
# network block device present in standard kernel
nbd)
RDEV=/dev/nbd0
- waitfor "${RDEV}" 30000 || error "$init_nbddev"
+ waitfor "${RDEV}" 20000 || error "$init_nbddev"
while ! nbd-client $nbdhost $nbdport ${RDEV} ; do
usleep 10
done
@@ -342,6 +343,7 @@ if [ -n "${nbdmod}" ] ; then
modprobe ${MODPRV} cowloop || {
error "$init_loadcow" nonfatal
COWLOOP=""; }
+ [ -x /bin/mdev ] && mdev -s
fi
if [ -n "${COWLOOP}" ] ; then
if [ -n "${UNIONFS}" ] ; then