From: Lennart Poettering Date: Thu, 14 Mar 2019 09:12:36 +0000 (+0100) Subject: man: provide an example how to plug systemd-mount into udev X-Git-Tag: v242-rc1~135 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e4960b86d22ab472f6b8ae7066abdc999c6e1e0;p=thirdparty%2Fsystemd.git man: provide an example how to plug systemd-mount into udev Prompted by: #11982 --- diff --git a/man/systemd-mount.xml b/man/systemd-mount.xml index 610c97f9488..5a13c98a6db 100644 --- a/man/systemd-mount.xml +++ b/man/systemd-mount.xml @@ -303,6 +303,15 @@ + + Example + + Use a udev rule like the following to automatically mount all USB storage plugged in: + + ACTION=="add", SUBSYSTEMS=="usb", SUBSYSTEM=="block", ENV{ID_FS_USAGE}=="filesystem", \ + RUN{program}+="/usr/bin/systemd-mount --no-block --automount=yes --collect $devnode" + + See Also