Adapted from Peter Rajnoha post:
- create a special systemd unit to monitor udev during boot:
cat > /etc/systemd/system/systemd-udev-monitor.service <<EOF [Unit] Description=udev Monitoring DefaultDependencies=no Wants=systemd-udevd.service After=systemd-udevd-control.socket systemd-udevd-kernel.socket Before=sysinit.target systemd-udev-trigger.service [Service] Type=simple ExecStart=/usr/bin/sh -c "/usr/sbin/udevadm monitor --udev --env > /udev_monitor.log" [Install] WantedBy=sysinit.target EOF
- run
systemctl daemon-reload
- run
systemctl enable systemd-udev-monitor.service
- reboot
- append “systemd.log_level=debug systemd.log_target=kmsg udev.log-priority=debug log_buf_len=8M” to kernel command line
- collect the logs in
/udev_monitor.log