diff options
author | crees <crees@FreeBSD.org> | 2013-05-04 14:00:16 +0000 |
---|---|---|
committer | crees <crees@FreeBSD.org> | 2013-05-04 14:00:16 +0000 |
commit | 6473a2540f9533d31ae4872e4485cd1f7eb2e402 (patch) | |
tree | 976207f2d40cd292429359556af3586f3a48de79 /etc | |
parent | 17f70d0a20fae6165cde9154414f54d76b99057d (diff) | |
download | FreeBSD-src-6473a2540f9533d31ae4872e4485cd1f7eb2e402.zip FreeBSD-src-6473a2540f9533d31ae4872e4485cd1f7eb2e402.tar.gz |
Introduce and use new flag -L to mount for mounting only late filesystems.
Previously, rc.d/mountlate mounted *all* filesystems, causing problems with
background NFS mounts being mounted twice.
PR: conf/137629
Submitted by: eadler (original concept)
Reviewed by: mjg
Approved by: hrs
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.d/mountlate | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/etc/rc.d/mountlate b/etc/rc.d/mountlate index 5b8ff73..34defc5 100755 --- a/etc/rc.d/mountlate +++ b/etc/rc.d/mountlate @@ -21,19 +21,10 @@ mountlate_start() # Mount "late" filesystems. # err=0 - latefs= - # / (root) fs is always remounted, so remove from list - latefs="`/sbin/mount -d -a -l | grep -v ' /$'`" - case ${latefs} in - '') - ;; - *) - echo -n 'Mounting late file systems:' - mount -a -l - err=$? - echo '.' - ;; - esac + echo -n 'Mounting late file systems:' + mount -a -L + err=$? + echo '.' case ${err} in 0) |