Add an autofs role for mounting removable media automatically on FreeBSD.

This commit is contained in:
Tom Alexander
2022-10-30 00:12:43 -04:00
parent f3c65defb7
commit 94b2f3846f
12 changed files with 142 additions and 22 deletions

View File

@@ -0,0 +1,11 @@
# $FreeBSD$
#
# Automounter master map, see auto_master(5) for details.
#
/net -hosts -nobrowse,nosuid,intr
# When using the -media special map, make sure to edit devd.conf(5)
# to move the call to "automount -c" out of the comments section.
/media -media -nosuid,noatime,autoro
#/- -noauto
# /mtp -simple-mtpfs -allow_other

View File

@@ -0,0 +1,6 @@
# Discard autofs caches, useful for the -media special map.
notify 100 {
match "system" "GEOM";
match "subsystem" "DEV";
action "/usr/sbin/automount -c";
};

View File

@@ -0,0 +1 @@
autofs_load=YES

View File

@@ -0,0 +1 @@
autofs_enable="YES"