# Auto-mount the microscope capture SSD as soon as it is plugged in. # # The mount itself must happen in a systemd service, not in RUN: udev workers # run without CAP_SYS_ADMIN, so mount(2) there fails with EPERM. The service is # oneshot *without* RemainAfterExit so it goes inactive again after each run and # a later replug can start it afresh. ACTION=="add", SUBSYSTEM=="block", ENV{ID_FS_UUID}=="caf4320b-0fa3-4674-bfa9-f17f6165f681", ENV{SYSTEMD_WANTS}+="microscope-ssd-mount.service", TAG+="systemd"