From d42dc1661b493ccaf2ff1c31ef023989798ca1cc Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Tue, 31 Jan 2006 22:53:33 +0000 Subject: Improved hardware detection, added SCSI/SATA drivers in hw detection (incomplete list), checked with more systems ... git-svn-id: http://svn.openslx.org/svn/openslx/dxs/ld4@52 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initrd/initrd-stuff/init | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'initrd/initrd-stuff/init') diff --git a/initrd/initrd-stuff/init b/initrd/initrd-stuff/init index e10f52ad..56d3cb0f 100755 --- a/initrd/initrd-stuff/init +++ b/initrd/initrd-stuff/init @@ -383,16 +383,18 @@ and list the modules loaded until\n now." waitfor /tmp/svcfg 20000 || error " For some reason the software config \ 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 # 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 # unmount the bind mounted modules directory -umount -n /lib/modules/${KERNEL} 2>/dev/null || { - usleep 40 && umount -n /lib/modules/${KERNEL} || \ - error "Unmount of the kernel modules directory failed for some reason." -} -# close runlevel script for stuff to execute during early bootup -d_mkbootld close +for i in 0 40 100 200 300 500 800 1000 1200; do + usleep $i && umount -n /lib/modules/${KERNEL} 2>/dev/null && break + error " Waited $i ticks to unmount kernel module directory ..." nonfatal +done +[ $i -gt 1000 ] && error " Unmount of the kernel modules directory \ +failed for some reason. Some\n modprobe still active!?" # check for inittab file test -f /mnt/etc/inittab || error " The file /etc/inittab does not exist or \ is no regular one. It is needed\n for the bootup procedure to follow." -- cgit v1.2.3-55-g7522