From 1e4960b86d22ab472f6b8ae7066abdc999c6e1e0 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 14 Mar 2019 10:12:36 +0100 Subject: [PATCH] man: provide an example how to plug systemd-mount into udev Prompted by: #11982 --- man/systemd-mount.xml | 9 +++++++++ 1 file changed, 9 insertions(+) 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