From b4317c49a4c1dcfaa3919d129eacc7b2b35583a7 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado <55825613+luevano@users.noreply.github.com> Date: Tue, 20 Oct 2020 15:16:55 -0600 Subject: Add new rules for mounting drives --- etc/tmpfiles.d/media.conf | 5 +++++ etc/udev/rules.d/99-udisks2.rules | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 etc/tmpfiles.d/media.conf create mode 100644 etc/udev/rules.d/99-udisks2.rules (limited to 'etc') diff --git a/etc/tmpfiles.d/media.conf b/etc/tmpfiles.d/media.conf new file mode 100644 index 0000000..db08b4f --- /dev/null +++ b/etc/tmpfiles.d/media.conf @@ -0,0 +1,5 @@ +# As seen in https://wiki.archlinux.org/index.php/Udisks and +# ttps://wiki.archlinux.org/index.php/Systemd#systemd-tmpfiles_-_temporary_files. + +# Path Mode UID GID Age Argument +D /media 0755 root root 0 - diff --git a/etc/udev/rules.d/99-udisks2.rules b/etc/udev/rules.d/99-udisks2.rules new file mode 100644 index 0000000..996e434 --- /dev/null +++ b/etc/udev/rules.d/99-udisks2.rules @@ -0,0 +1,5 @@ +# UDISKS_FILESYSTEM_SHARED +# ==1: mount filesystem to a shared directory (/media/VolumeName) +# ==0: mount filesystem to a private directory (/run/media/$USER/VolumeName) +# See udisks(8) +ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{UDISKS_FILESYSTEM_SHARED}="1" -- cgit v1.2.3-70-g09d2