Fix invalid installation of udev libs to /lib
[hvlinux.git] / stage1 / bootscripts / udev
index 12527a5..18baaa1 100644 (file)
@@ -3,7 +3,7 @@
 # udev
 # Udev cold-plugging script
 
-DAEMON=/sbin/udevd
+DAEMON=/tools/sbin/udevd
 DAEMON_DESC=UDEV
 DAEMON_OPTS="--daemon"
 
@@ -18,11 +18,11 @@ udev_coldplug()
     mkdir -p /dev/udev/queue &&
 
     # Configure all devices
-    /sbin/udevadm trigger --action=add --type=subsystems &&
-    /sbin/udevadm trigger --action=add --type=devices &&
+    /tools/sbin/udevadm trigger --action=add --type=subsystems &&
+    /tools/sbin/udevadm trigger --action=add --type=devices &&
 
     # Now wait for udevd to process the uevents we triggered
-    /sbin/udevadm settle
+    /tools/sbin/udevadm settle
 }
 
 udev_start()
@@ -42,7 +42,7 @@ case "$1" in
            boot_failure "FAILURE: Unable to create devices without a SysFS filesystem."
         fi
 
-       cmd_run_log_box "Copying static /dev entries" cp --preserve=all --recursive --remove-destination /lib/udev/devices/* /dev
+       cmd_run_log_box "Copying static /dev entries" cp --preserve=all --recursive --remove-destination /tools/lib/udev/devices/* /dev
        cmd_run_log_box "Setting permissons on /dev/shm" chmod 1777 /dev/shm
 
        cmd_run_log_box_warn "${DAEMON_DESC} start" udev_start