diff options
Diffstat (limited to 'init')
-rwxr-xr-x | init | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -36,8 +36,25 @@ mount -t tmpfs -o "noexec,nosuid,size=10%,mode=0755" tmpfs /run mkdir -p /tmp mount -t tmpfs -o "nodev,nosuid,size=10%,mode=1777" tmpfs /tmp -cmdline="$(cat /proc/cmdline)" +# Start udev. +# +# Based on Debian initrd's init-top/udev. Note that we don't stop it at +# at the end of init. +# +info "starting udev..." + +if [ -w /sys/kernel/uevent_helper ]; then + echo >/sys/kernel/uevent_helper +fi +SYSTEMD_LOG_LEVEL=info /lib/systemd/systemd-udevd --daemon --resolve-names=never + +udevadm trigger --action=add +udevadm settle || true + +# Parse command line. +# +cmdline="$(cat /proc/cmdline)" info "boot cmdline: $cmdline" sleep 2 |