Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

https://www.freedesktop.org/software/systemd/man/udev.html

systemd-mount的用法请参考:

https://www.freedesktop.org/software/systemd/man/systemd-mount.html

以上例子中的udev规则中匹配sd[a-z][0-9]的设备, 当系统中检查usb设备插入时, 就会执行add中的操作, 当检查到usb设备拔出后, 就会执行remove中的操作. 

...