mirror of
https://git.proxmox.com/git/systemd
synced 2026-02-03 22:23:21 +00:00
Drop the obsolete check for /sys/kernel/uevent_helper from postinst and the SysV init script and do not unconditionally overwrite it in the initramfs hook. Since a long time now udev has been using the netlink interface to communicate with the kernel and with Linux 3.16 it is possible to disable CONFIG_UEVENT_HELPER completely. Closes: #752742
36 lines
679 B
Bash
36 lines
679 B
Bash
#!/bin/sh -e
|
|
|
|
PREREQS=""
|
|
|
|
prereqs() { echo "$PREREQS"; }
|
|
|
|
case "$1" in
|
|
prereqs)
|
|
prereqs
|
|
exit 0
|
|
;;
|
|
esac
|
|
|
|
if [ -w /sys/kernel/uevent_helper ]; then
|
|
echo > /sys/kernel/uevent_helper
|
|
fi
|
|
|
|
/lib/systemd/systemd-udevd --daemon --resolve-names=never
|
|
|
|
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
|
|
|
|
# If the rootdelay parameter has been set, we wait a bit for devices
|
|
# like usb/firewire disks to settle.
|
|
if [ "$ROOTDELAY" ]; then
|
|
sleep $ROOTDELAY
|
|
fi
|
|
|
|
# Leave udev running to process events that come in out-of-band (like USB
|
|
# connections)
|