6b4cb03a83
/run is now used explicitly by udev>=167 so I followed the lead and updated XBPS core packages to use it by default.
35 lines
669 B
Bash
35 lines
669 B
Bash
#!/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 > /sys/kernel/uevent_helper
|
|
|
|
# Start the udev daemon to process events
|
|
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.
|
|
udevadm trigger --action=add
|
|
udevadm settle || true
|
|
|
|
if [ -d /sys/bus/scsi ]; then
|
|
modprobe -q scsi_wait_scan && modprobe -r scsi_wait_scan || true
|
|
udevadm settle || true
|
|
fi
|