Skip to content

Commit

Permalink
man: provide an example how to plug systemd-mount into udev
Browse files Browse the repository at this point in the history
Prompted by: systemd#11982
  • Loading branch information
poettering authored and Yulia Kartseva committed Mar 18, 2019
1 parent 18461b1 commit b9cb0fa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions man/systemd-mount.xml
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,15 @@
</variablelist>
</refsect1>

<refsect1>
<title>Example</title>

<para>Use a udev rule like the following to automatically mount all USB storage plugged in:</para>

<programlisting>ACTION=="add", SUBSYSTEMS=="usb", SUBSYSTEM=="block", ENV{ID_FS_USAGE}=="filesystem", \
RUN{program}+="/usr/bin/systemd-mount --no-block --automount=yes --collect $devnode"</programlisting>
</refsect1>

<refsect1>
<title>See Also</title>
<para>
Expand Down

0 comments on commit b9cb0fa

Please sign in to comment.