Added klibc-udev-138 template, for the initramfs.
Move initramfs-tools udev hook to this pkg. --HG-- extra : convert_revision : d88915bc50cdf9211fae16f09a3b306814c6ed1f
This commit is contained in:
parent
9d6298398c
commit
26a8c1b1fa
6 changed files with 92 additions and 16 deletions
29
templates/klibc-udev/files/udev.initramfs-premount
Normal file
29
templates/klibc-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
|
Loading…
Add table
Add a link
Reference in a new issue