udev: install the initramfs-tools hook.
This replaces klibc-udev, which adds extra work for a little gain, so just use the real pkg. Bump revision. --HG-- extra : convert_revision : c01ed34d0766012254b24b1da090b24a261a6bf7
This commit is contained in:
29
templates/udev/files/udev.initramfs-premount
Normal file
29
templates/udev/files/udev.initramfs-premount
Normal file
@@ -0,0 +1,29 @@
|
||||
#!/bin/sh -e
|
||||
# initramfs premount script for udev
|
||||
|
||||
PREREQ=""
|
||||
|
||||
# Output pre-requisites
|
||||
prereqs()
|
||||
{
|
||||
echo "$PREREQ"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
prereqs)
|
||||
prereqs
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
# It's all over netlink now
|
||||
echo "" > /proc/sys/kernel/hotplug
|
||||
|
||||
# Start the udev daemon to process events
|
||||
/sbin/udevd --daemon --resolve-names=never
|
||||
|
||||
# Iterate sysfs and fire off everything; if we include a rule for it then
|
||||
# it'll get handled; otherwise it'll get handled later when we do this again
|
||||
# in the main boot sequence.
|
||||
/sbin/udevadm trigger
|
||||
Reference in New Issue
Block a user