Files
2026-06-02 21:38:47 +02:00

15 lines
595 B
Bash

#!/bin/sh
# Coldplug devices that already existed before udevd started: replay "add"
# uevents for subsystems then devices, and wait for processing to finish so
# DRM/input nodes (and their autoloaded modules) are present before Weston.
set -eu
export PATH=/usr/bin:/usr/sbin:/bin:/sbin
udevadm trigger --action=add --type=subsystems
udevadm trigger --action=add --type=devices
udevadm settle || true
# Safety net for QEMU/virtio: ensure the virtio-gpu DRM driver is loaded even if
# coldplug autoload missed it. (Input/evdev is built into the kernel.)
modprobe virtio_gpu 2>/dev/null || true