[Bug 228786] automount interferes with suspend

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jul 30 13:44:28 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228786

--- Comment #2 from Jason W. Bacon <jwb at freebsd.org> ---
I have an NFS server at home and the following auto_master:

# $FreeBSD: releng/11.1/etc/auto_master 310007 2016-12-13 04:44:06Z dteske $
#
# 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
#/-             -noauto

If an NFS server is mounted when S3 is initiated (e.g. by closing my laptop),
it will freeze before reaching S3 state.

After I added automount -u to rc.suspend, it never froze again.

# If a device driver has problems suspending, try unloading it before
# suspend and reloading it on resume.  Example:
# kldunload usb

automount -u

/usr/bin/logger -t $subsystem suspend at `/bin/date +'%Y%m%d %H:%M:%S'`
/bin/sync && /bin/sync && /bin/sync
/bin/sleep 3

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-rc mailing list