mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
225ddc4a72
Tools such as lsblk which query the udev database instead of probing devices directly fail when run on ublk devices. For instance, in the following commands, the partition type is missing, despite the fact that /dev/ublkb0 was just partitioned with a single Linux filesystem type partition. $ lsblk /dev/ublkb0 NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS ublkb0 259:0 0 31.3G 0 disk └─ublkb0p1 259:1 0 31.2G 0 part $ lsblk -o pkname,parttype /dev/ublkb0 PKNAME PARTTYPE ublkb0 This happens because ublk devices are missing from a couple of whitelists in the udev rules which are responsible for populating the database with the data lsblk is looking for. Add the ublk devices to these whitelists. |
||
---|---|---|
.. | ||
50-udev-default.rules.in | ||
60-autosuspend.rules | ||
60-block.rules | ||
60-cdrom_id.rules | ||
60-dmi-id.rules | ||
60-drm.rules | ||
60-evdev.rules | ||
60-fido-id.rules | ||
60-infiniband.rules | ||
60-input-id.rules | ||
60-persistent-alsa.rules | ||
60-persistent-input.rules | ||
60-persistent-media-controller.rules | ||
60-persistent-storage-mtd.rules | ||
60-persistent-storage-tape.rules | ||
60-persistent-storage.rules.in | ||
60-persistent-v4l.rules | ||
60-sensor.rules | ||
60-serial.rules | ||
64-btrfs.rules.in | ||
70-camera.rules | ||
70-joystick.rules | ||
70-memory.rules | ||
70-mouse.rules | ||
70-power-switch.rules | ||
70-touchpad.rules | ||
70-uaccess.rules.in | ||
71-seat.rules.in | ||
73-seat-late.rules.in | ||
75-net-description.rules | ||
75-probe_mtd.rules | ||
78-sound-card.rules | ||
80-drivers.rules | ||
80-net-setup-link.rules | ||
81-net-dhcp.rules | ||
82-net-auto-link-local.rules | ||
90-iocost.rules | ||
90-vconsole.rules.in | ||
99-systemd.rules.in | ||
meson.build | ||
README |
Files in this directory contain configuration for systemd-udevd.service, a daemon that manages symlinks to device nodes, permissions of devices nodes, emits device events for userspace, and renames network interfaces. See man:udev(7) for an overview of the configuration file format, and man:systemd-udevd.service(8) for a description of service itself. Use 'systemd-analyze cat-config udev/rules.d' to display the effective config.