4 # Provides: zvol zfs zfs-mount
5 # Required-Start: $local_fs
6 # Required-Stop: $local_fs
7 # Default-Start: 2 3 4 5
9 # Short-Description: Mount ZFS filesystems
10 # Description: Run the `zfs mount -a` or `zfs umount -a` command.
11 # This init script is deprecated and should be disabled in the
12 # /etc/default/zfs options file. Instead, use the zfs-mount
13 # package for Debian or the zfs-mountall package for Ubuntu
18 .
/lib
/lsb
/init-functions
19 # Do not source /lib/init/*.sh as they are not public APIs after getting rid
20 # of /lib/init/rw. However, this line may help when doing back port to older
25 [ -f /etc
/default
/zfs
] && .
/etc
/default
/zfs
29 log_begin_msg
"Mounting ZFS filesystems"
30 log_progress_msg
"filesystems"
34 if [ $RET != 0 ] ; then
44 log_begin_msg
"Unmounting ZFS filesystems"
45 log_progress_msg
"filesystems"
49 # Ignore a non-zero `zfs` result so that a busy ZFS instance
50 # does not hang the system during shutdown.
51 if [ $RET != 0 ] ; then
61 ([Oo
][Ff
][Ff
]|
[Nn
][Oo
]|
'')
68 case "$ZFS_UNMOUNT" in
69 ([Oo
][Ff
][Ff
]|
[Nn
][Oo
]|
'')
75 (force-reload|reload|restart|status
)
80 [ -n "$1" ] && echo "Error: Unknown command $1."
81 echo "Usage: $0 {start|stop}"