summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init19
1 files changed, 10 insertions, 9 deletions
diff --git a/init b/init
index 182a54b..e860047 100644
--- a/init
+++ b/init
@@ -102,15 +102,6 @@ if [ -f "/message" ]; then
msg "$(cat /message)"
fi
-#Special handling if udev is running
-udevpid=$(/bin/pidof udevd)
-if [ -n "${udevpid}" ]; then
- # Settle pending uevents, then kill udev
- /sbin/udevadm settle
- /bin/kill -9 ${udevpid} > /dev/null 2>&1
- /bin/sleep 0.01
-fi
-
mkdir -p /new_root
if [ -z "${nfsroot}" -a "${root}" != "/dev/nfs" ]; then
if [ ${root:0:5} != "/dev/" ] || ! poll_device "${root}" ${rootdelay}; then
@@ -188,6 +179,16 @@ else
fi
nfsmount ${nfs_option:+-o ${nfs_option}} "${nfs_server}:${nfs_path}" /new_root
fi
+
+#Special handling if udev is running
+udevpid=$(/bin/pidof udevd)
+if [ -n "${udevpid}" ]; then
+ # Settle pending uevents, then kill udev
+ /sbin/udevadm settle
+ /bin/kill -9 ${udevpid} > /dev/null 2>&1
+ /bin/sleep 0.01
+fi
+
umount /proc
umount /sys
[ -z "${init}" ] && init="/sbin/init"