PATH:
usr
/
lib
/
udev
/
rules.d
# Copyright (C) 2009 Red Hat, Inc. All rights reserved. # # This file is part of LVM2. # Udev rules for device-mapper devices. # # These rules create symlinks in /dev/disk directory. # Symlinks that depend on probing filesystem type, # label and uuid are created only if the device is not # suspended. # "add" event is processed on coldplug only! ACTION=="remove", GOTO="dm_end" ENV{DM_UDEV_RULES_VSN}!="?*", GOTO="dm_end" ENV{DM_UDEV_DISABLE_DISK_RULES_FLAG}=="1", GOTO="dm_end" SYMLINK+="disk/by-id/dm-name-$env{DM_NAME}" ENV{DM_UUID}=="?*", SYMLINK+="disk/by-id/dm-uuid-$env{DM_UUID}" ENV{DISKSEQ}=="?*", SYMLINK+="disk/by-diskseq/$env{DISKSEQ}" ENV{DM_SUSPENDED}=="1", ENV{DM_UDEV_PRIMARY_SOURCE_FLAG}=="1", GOTO="dm_import" ENV{DM_NOSCAN}=="1", ENV{DM_UDEV_PRIMARY_SOURCE_FLAG}=="1", GOTO="dm_import" ENV{DM_SUSPENDED}=="1", GOTO="dm_end" ENV{DM_NOSCAN}=="1", GOTO="dm_watch" IMPORT{builtin}="blkid" GOTO="dm_link" LABEL="dm_import" IMPORT{db}="ID_FS_TYPE" IMPORT{db}="ID_FS_USAGE" IMPORT{db}="ID_FS_UUID_ENC" IMPORT{db}="ID_FS_LABEL_ENC" IMPORT{db}="ID_PART_ENTRY_NAME" IMPORT{db}="ID_PART_ENTRY_UUID" IMPORT{db}="ID_PART_ENTRY_SCHEME" IMPORT{db}="ID_PART_GPT_AUTO_ROOT" LABEL="dm_link" ENV{DM_UDEV_LOW_PRIORITY_FLAG}=="1", OPTIONS="link_priority=-100" ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}" ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}" ENV{ID_PART_ENTRY_UUID}=="?*", SYMLINK+="disk/by-partuuid/$env{ID_PART_ENTRY_UUID}" ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_PART_ENTRY_NAME}=="?*", SYMLINK+="disk/by-partlabel/$env{ID_PART_ENTRY_NAME}" ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_PART_GPT_AUTO_ROOT}=="1", SYMLINK+="gpt-auto-root" # Add inotify watch to track changes on this device. # Using the watch rule is not optimal - it generates a lot of spurious # and useless events whenever the device opened for read-write is closed. # The best would be to generate the event directly in the tool changing # relevant information so only relevant events will be processed # (like creating a filesystem, changing filesystem label etc.). # # But let's use this until we have something better... LABEL="dm_watch" OPTIONS+="watch" LABEL="dm_end"
[-] 65-scsi-cciss_id.rules
[edit]
[-] 60-evdev.rules
[edit]
[-] 91-drm-modeset.rules
[edit]
[-] 90-vconsole.rules
[edit]
[-] 60-cdrom_id.rules
[edit]
[-] 65-persistent-net-nbft.rules
[edit]
[-] 90-iprutils.rules
[edit]
[-] 70-uaccess.rules
[edit]
[-] 99-nfs.rules
[edit]
[-] 11-dm-mpath.rules
[edit]
[-] README
[edit]
[-] 71-nvmf-netapp.rules
[edit]
[-] 68-del-part-nodes.rules
[edit]
[-] 60-persistent-storage-tape.rules
[edit]
[-] 60-persistent-v4l.rules
[edit]
[-] 01-md-raid-creating.rules
[edit]
[-] 60-serial.rules
[edit]
[-] 80-drivers.rules
[edit]
[-] 60-sensor.rules
[edit]
[-] 70-nvmf-keys.rules
[edit]
[-] 62-multipath.rules
[edit]
[-] 75-probe_mtd.rules
[edit]
[-] 75-net-description.rules
[edit]
[-] 80-net-setup-link.rules
[edit]
[-] 60-net.rules
[edit]
[-] 71-seat.rules
[edit]
[-] 84-nm-drivers.rules
[edit]
[-] 11-dm-parts.rules
[edit]
[-] 66-kpartx.rules
[edit]
[-] 70-joystick.rules
[edit]
[-] 40-redhat.rules
[edit]
[-] 11-dm-lvm.rules
[edit]
[-] 70-touchpad.rules
[edit]
[-] 40-elevator.rules
[edit]
[-] 60-drm.rules
[edit]
[-] 70-libfprint-2.rules
[edit]
[-] 63-fc-wwpn-id.rules
[edit]
[-] 98-kexec.rules
[edit]
[-] 85-nm-unmanaged.rules
[edit]
[-] 60-input-id.rules
[edit]
[-] 40-usb-blacklist.rules
[edit]
[-] 61-scsi-sg3_id.rules
[edit]
[-] 90-nm-thunderbolt.rules
[edit]
[-] 70-power-switch.rules
[edit]
[-] 60-block.rules
[edit]
[-] 60-persistent-alsa.rules
[edit]
[-] 69-md-clustered-confirm-device.rules
[edit]
[-] 63-scsi-sg3_symlink.rules
[edit]
[-] 69-dm-lvm.rules
[edit]
[-] 60-persistent-storage.rules
[edit]
[-] 95-dm-notify.rules
[edit]
[+]
..
[-] 60-persistent-input.rules
[edit]
[-] 64-md-raid-assembly.rules
[edit]
[-] 70-camera.rules
[edit]
[-] 70-mouse.rules
[edit]
[-] 60-fido-id.rules
[edit]
[-] 71-prefixdevname.rules
[edit]
[-] 63-md-raid-arrays.rules
[edit]
[-] 90-pipewire-alsa.rules
[edit]
[-] 95-upower-wup.rules
[edit]
[-] 50-udev-default.rules
[edit]
[-] 13-dm-disk.rules
[edit]
[-] 60-tpm-udev.rules
[edit]
[-] 99-systemd.rules
[edit]
[-] 73-seat-late.rules
[edit]
[-] 64-btrfs.rules
[edit]
[-] 70-memory.rules
[edit]
[-] 81-net-dhcp.rules
[edit]
[-] 60-autosuspend.rules
[edit]
[-] 95-upower-hid.rules
[edit]
[-] 70-nvmf-autoconnect.rules
[edit]
[-] 78-sound-card.rules
[edit]
[-] 66-md-auto-readd.rules
[edit]
[-] 10-dm.rules
[edit]