start-udev 690 Bytes
Newer Older
1
2
#!/bin/sh -e

3
4
5
if [ -w /sys/kernel/uevent_helper ]; then
    echo > /sys/kernel/uevent_helper
fi
6

Michael Biebl's avatar
Michael Biebl committed
7
if ! grep -E -q "^[^[:space:]]+ /dev devtmpfs" /proc/mounts; then
8
    mount -n -o mode=0755 -t devtmpfs devtmpfs /dev
9
10
fi

11
12
13
14
15
16
# This covers the same case as lib/modprobe.d/scsi-mod-scan-sync.conf
# in the event that scsi_mod is built in to the kernel, not a module:
if [ -f /sys/module/scsi_mod/parameters/scan ]; then
    echo sync > /sys/module/scsi_mod/parameters/scan
fi

17
SYSTEMD_LOG_LEVEL=notice /lib/systemd/systemd-udevd --daemon --resolve-names=never
18
19
20

udevadm trigger --action=add

21
mkdir -p /dev/pts
22
mount -t devpts -o noexec,nosuid,gid=5,mode=0620 devpts /dev/pts
23
24

udevadm settle || true