summaryrefslogtreecommitdiffstats
path: root/initrd/initrd-stuff/init
diff options
context:
space:
mode:
Diffstat (limited to 'initrd/initrd-stuff/init')
-rwxr-xr-xinitrd/initrd-stuff/init6
1 files changed, 4 insertions, 2 deletions
diff --git a/initrd/initrd-stuff/init b/initrd/initrd-stuff/init
index 985253b7..94cb78ec 100755
--- a/initrd/initrd-stuff/init
+++ b/initrd/initrd-stuff/init
@@ -387,8 +387,10 @@ and list the modules loaded until\n now."
# should be killed if started within init
killall -9 dhcpcd dhclient pump udevd 2>/dev/null
# unmount the bind mounted modules directory
-umount -n /lib/modules/${KERNEL} || error "Unmount of the kernel \
-modules directory failed for some reason."
+umount -n /lib/modules/${KERNEL} || {
+ 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
# check for inittab file