HEX
Server: nginx/1.26.1
System: Linux main-vm 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
User: root (0)
PHP: 8.2.19
Disabled: NONE
Upload Files
File: //snap/core24/current/lib/udev/rules.d/66-snapd-autoimport.rules
SUBSYSTEM!="block", GOTO="snapd_autoimport_end"
ACTION!="add|change|bind", GOTO="snapd_autoimport_end"
KERNEL=="loop*", GOTO="snapd_autoimport_end"
KERNEL=="ram*", GOTO="snapd_autoimport_end"

# Only care about disk and partition of removable disks
ATTR{removable}=="1", ENV{SNAPD_DISK_REMOVABLE}="1"
ENV{DEVTYPE}=="partition", IMPORT{parent}="SNAPD_DISK_REMOVABLE"
ENV{SNAPD_DISK_REMOVABLE}!="1", GOTO="snapd_autoimport_end"

# Now we have marked disks as removable, only care about filesystems.
# Note that ID_FS_USAGE will also tell us if the removable media is available.
ENV{ID_FS_USAGE}!="filesystem", GOTO="snapd_autoimport_end"

ENV{SYSTEMD_WANTS}+="snapd.autoimport-device@%k.service"

LABEL="snapd_autoimport_end"