void-packages/srcpkgs/systemd/files/udev.initramfs-inittop

28 lines
545 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
# Start the udev daemon to process events
systemd-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 --type=subsystems
udevadm trigger --action=add --type=devices
udevadm settle