GOLDEN HOUR
DIR: /usr/lib/udev/rules.d
UP
UPLOAD
Name
Size
Action
01-md-raid-creating.rules
321 B
DEL
10-dm.rules
7.32 KB
DEL
11-dm-lvm.rules
2.57 KB
DEL
11-dm-mpath.rules
4.46 KB
DEL
11-dm-parts.rules
1.41 KB
DEL
13-dm-disk.rules
2.25 KB
DEL
40-elevator.rules
728 B
DEL
40-redhat.rules
1.97 KB
DEL
40-usb-blacklist.rules
458 B
DEL
50-udev-default.rules
5.28 KB
DEL
60-autosuspend.rules
704 B
DEL
60-block.rules
703 B
DEL
60-cdrom_id.rules
1.05 KB
DEL
60-drm.rules
413 B
DEL
60-evdev.rules
990 B
DEL
60-fido-id.rules
491 B
DEL
60-input-id.rules
282 B
DEL
60-net.rules
129 B
DEL
60-persistent-alsa.rules
616 B
DEL
60-persistent-input.rules
2.66 KB
DEL
60-persistent-storage-tape.rules
2.15 KB
DEL
60-persistent-storage.rules
10.65 KB
DEL
60-persistent-v4l.rules
769 B
DEL
60-sensor.rules
1.58 KB
DEL
60-serial.rules
1.11 KB
DEL
60-tpm-udev.rules
243 B
DEL
61-scsi-sg3_id.rules
6.21 KB
DEL
62-multipath.rules
4.43 KB
DEL
63-fc-wwpn-id.rules
624 B
DEL
63-md-raid-arrays.rules
2.54 KB
DEL
63-scsi-sg3_symlink.rules
2.9 KB
DEL
64-btrfs.rules
616 B
DEL
64-md-raid-assembly.rules
2.32 KB
DEL
65-scsi-cciss_id.rules
732 B
DEL
66-azure-ephemeral.rules
1.91 KB
DEL
66-kpartx.rules
1.36 KB
DEL
66-md-auto-readd.rules
895 B
DEL
68-del-part-nodes.rules
1.12 KB
DEL
69-dm-lvm.rules
3.57 KB
DEL
69-md-clustered-confirm-device.rules
858 B
DEL
70-camera.rules
281 B
DEL
70-joystick.rules
432 B
DEL
70-memory.rules
184 B
DEL
70-mouse.rules
734 B
DEL
70-power-switch.rules
576 B
DEL
70-touchpad.rules
473 B
DEL
70-uaccess.rules
3.66 KB
DEL
71-prefixdevname.rules
403 B
DEL
71-seat.rules
3.73 KB
DEL
73-seat-late.rules
643 B
DEL
75-net-description.rules
512 B
DEL
75-probe_mtd.rules
174 B
DEL
78-sound-card.rules
4.7 KB
DEL
80-drivers.rules
600 B
DEL
80-net-setup-link.rules
295 B
DEL
81-net-dhcp.rules
528 B
DEL
84-nm-drivers.rules
533 B
DEL
85-nm-unmanaged.rules
1.97 KB
DEL
90-fwupd-devices.rules
281 B
DEL
90-nm-thunderbolt.rules
588 B
DEL
90-pipewire-alsa.rules
12.92 KB
DEL
90-vconsole.rules
489 B
DEL
91-drm-modeset.rules
56 B
DEL
95-dm-notify.rules
483 B
DEL
95-upower-hid.rules
7.92 KB
DEL
95-upower-wup.rules
354 B
DEL
98-kexec.rules
695 B
DEL
99-nfs.rules
95 B
DEL
99-qemu-guest-agent.rules
130 B
DEL
99-systemd.rules
4.92 KB
DEL
README
435 B
DEL
Edit: 62-multipath.rules
# Set DM_MULTIPATH_DEVICE_PATH if the device should be handled by multipath SUBSYSTEM!="block", GOTO="end_mpath" KERNEL!="sd*|dasd*|nvme*", GOTO="end_mpath" ACTION=="remove", TEST=="/run/multipath/find_multipaths/$major:$minor", \ RUN+="/usr/bin/rm -f /run/multipath/find_multipaths/$major:$minor" ACTION!="add|change", GOTO="end_mpath" IMPORT{cmdline}="nompath" ENV{nompath}=="?*", GOTO="end_mpath" IMPORT{cmdline}="multipath" ENV{multipath}=="off", GOTO="end_mpath" TEST!="/etc/multipath.conf", GOTO="end_mpath" ENV{DEVTYPE}!="partition", GOTO="test_dev" IMPORT{parent}="DM_MULTIPATH_DEVICE_PATH" ENV{DM_MULTIPATH_DEVICE_PATH}=="1", ENV{ID_FS_TYPE}="none", \ ENV{SYSTEMD_READY}="0" GOTO="end_mpath" LABEL="test_dev" ENV{MPATH_SBIN_PATH}="/sbin" TEST!="$env{MPATH_SBIN_PATH}/multipath", ENV{MPATH_SBIN_PATH}="/usr/sbin" # FIND_MULTIPATHS_WAIT_UNTIL is the timeout (in seconds after the # epoch). IMPORT{db}="FIND_MULTIPATHS_WAIT_UNTIL" ENV{.SAVED_FM_WAIT_UNTIL}="$env{FIND_MULTIPATHS_WAIT_UNTIL}" # multipath -u needs to know if this device has ever been exported IMPORT{db}="DM_MULTIPATH_DEVICE_PATH" # multipath -u sets DM_MULTIPATH_DEVICE_PATH and, # if "find_multipaths smart", also FIND_MULTIPATHS_WAIT_UNTIL. IMPORT{program}=="$env{MPATH_SBIN_PATH}/multipath -u %k", \ ENV{.MPATH_CHECK_PASSED}="1" # case 1: this is definitely multipath ENV{DM_MULTIPATH_DEVICE_PATH}=="1", \ ENV{ID_FS_TYPE}="mpath_member", ENV{SYSTEMD_READY}="0", \ GOTO="stop_wait" # case 2: this is definitely not multipath, or timeout has expired ENV{DM_MULTIPATH_DEVICE_PATH}!="2", \ GOTO="stop_wait" # Code below here is only run in "smart" mode. # multipath -u has indicated this is "maybe" multipath. # Note that DM_MULTIPATH_DEVICE_PATH has the value 2 at this point. # This value will never propagate to other rules files, because # it will be reset to 1 in the "pretend_multipath" section below. # This shouldn't happen, just in case. ENV{FIND_MULTIPATHS_WAIT_UNTIL}!="?*", GOTO="end_mpath" # Be careful not to start the timer twice. ACTION!="add", GOTO="pretend_mpath" ENV{.SAVED_FM_WAIT_UNTIL}=="?*", GOTO="pretend_mpath" # At this point, we are seeing this path for the first time, and it's "maybe" multipath. # The actual start command for the timer. # # The purpose of this command is only to make sure we will receive another # uevent eventually. *Any* uevent may cause waiting to finish if it either ends # in case 1-3 above, or if it arrives after FIND_MULTIPATHS_WAIT_UNTIL. # # Note that this will try to activate multipathd if it isn't running yet. # If that fails, the unit starts and expires nonetheless. If multipathd # startup needs to wait for other services, this wait time will add up with # the --on-active timeout. # # We must trigger an "add" event because LVM2 will only act on those. RUN+="/usr/bin/systemd-run --unit=cancel-multipath-wait-$kernel --description 'cancel waiting for multipath siblings of $kernel' --no-block --timer-property DefaultDependencies=no --timer-property Conflicts=shutdown.target --timer-property Before=shutdown.target --timer-property Conflicts=initrd-cleanup.service --timer-property Before=initrd-cleanup.service --timer-property AccuracySec=500ms --property DefaultDependencies=no --property Conflicts=shutdown.target --property Before=shutdown.target --property Conflicts=initrd-cleanup.service --property Before=initrd-cleanup.service --on-active=$env{FIND_MULTIPATHS_WAIT_UNTIL} /usr/bin/udevadm trigger --action=add $sys$devpath" LABEL="pretend_mpath" ENV{DM_MULTIPATH_DEVICE_PATH}="1" ENV{SYSTEMD_READY}="0" GOTO="end_mpath" LABEL="stop_wait" # If timeout hasn't expired but we're not in "maybe" state any more, stop timer # Do this only once, and only if the timer has been started before IMPORT{db}="FIND_MULTIPATHS_WAIT_CANCELLED" ENV{FIND_MULTIPATHS_WAIT_CANCELLED}=="?*", GOTO="end_mpath" ENV{FIND_MULTIPATHS_WAIT_UNTIL}!="?*", GOTO="end_mpath" ENV{FIND_MULTIPATHS_WAIT_UNTIL}=="0", GOTO="end_mpath" ENV{FIND_MULTIPATHS_WAIT_CANCELLED}="1" RUN+="/usr/bin/systemctl stop cancel-multipath-wait-$kernel.timer" # If "multipath -u" failed, no values are imported from the program, # and we are still using the values for DM_MULTIPATH_DEVICE_PATH and # FIND_MULTIPATHS_WAIT_UNTIL that were imported from the database. # If we are in "smart" mode, we need to give up on the path now, # since this may have been the timeout event. Without the imports # from "multipath -u", we can't tell. ENV{.MPATH_CHECK_PASSED}!="?*", ENV{DM_MULTIPATH_DEVICE_PATH}="0" LABEL="end_mpath"
SAVE FILE
TERMINAL
EXEC