X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Fbootscripts%2Fudev;fp=stage1%2Fbootscripts%2Fudev;h=34e1ce11b82c9efc26686019ec11673503a6226c;hb=3fb13cf968ef5335a9d22601dfdcddd7189207a8;hp=7c10b0df5238e71699b603692a494409aa465da4;hpb=9252b914495c96a2b323f1dbec5fa075a280c380;p=hvlinux.git diff --git a/stage1/bootscripts/udev b/stage1/bootscripts/udev index 7c10b0d..34e1ce1 100644 --- a/stage1/bootscripts/udev +++ b/stage1/bootscripts/udev @@ -3,7 +3,7 @@ # udev # Udev cold-plugging script -DAEMON=/sbin/udevd +DAEMON=/lib/udev/udevd DAEMON_DESC=UDEV DAEMON_OPTS="--daemon" @@ -15,17 +15,20 @@ log_script_name "$0 $*" udev_coldplug() { # Unlikely, but we may be faster than the first event - mkdir -p /dev/.udev/queue && + mkdir -p /dev/udev/queue && # Configure all devices - /sbin/udevadm trigger && + /bin/udevadm trigger --action=add --type=subsystems && + /bin/udevadm trigger --action=add --type=devices && # Now wait for udevd to process the uevents we triggered - /sbin/udevadm settle + /bin/udevadm settle } udev_start() { + # Udev handles uevents itself, so we don't need to have + # the kernel call out to any binary in response to them echo "" > /sys/kernel/uevent_helper && # Start the udev daemon to continually watch for, and act on uevents @@ -39,11 +42,6 @@ case "$1" in boot_failure "FAILURE: Unable to create devices without a SysFS filesystem." fi - # Mount a temporary file system over /dev, so that any devices - # made or removed during this boot don't affect the next one. - # The reason we don't write to mtab is because we don't ever - # want /dev to be unavailable (such as by `umount -a'). - cmd_run_log_box "Mounting /dev in tmpfs" mount -n -t tmpfs -o mode=0755 udev /dev cmd_run_log_box "Copying static /dev entries" cp --preserve=all --recursive --remove-destination /lib/udev/devices/* /dev cmd_run_log_box "Setting permissons on /dev/shm" chmod 1777 /dev/shm