3 # $NetBSD: mountall,v 1.7 2009/10/05 22:39:27 haad Exp $
6 # REQUIRE: mountcritremote named ypbind
9 $_rc_subr_loaded .
/etc
/rc.subr
12 start_cmd
="mountall_start"
13 stop_cmd
="mountall_stop"
17 echo 'Mounting all filesystems...'
18 if [ -f /etc
/zfs
/zpool.cache
]; then
19 # Get ZFS module loaded (and thereby, zvols created).
20 zfs list
> /dev
/null
2>&1
21 # Initialize zvols so they can be mounted
23 # Mount file systems noted in fstab.
25 # Mount ZFS file systems.
28 # Mount file systems noted in fstab.
35 echo 'Unmounting all filesystems...'
36 if [ -f /etc
/zfs
/zpool.cache
]; then
37 # Unmount ZFS file systems.
39 # Unmount file systems noted in fstab.
41 # Unload ZFS module, so disk devices are closed.
44 # Otherwise, just deal with fstab.