computer-playbook/roles/independent_backup-to-usb/templates/99-usbstick.rules.j2

2 lines
184 B
Django/Jinja

ACTION=="add", SUBSYSTEM=="block", ENV{ID_SERIAL_SHORT}=="{{ backup_to_usb_serial_short }}", RUN+="/usr/bin/systemd-mount --no-block $devnode {{ mount_point }}", SYMLINK+="backup_usb"