View | Details | Raw Unified | Return to bug 153666
Collapse All | Expand All

(-)etc/defaults/rc.conf (+1 lines)
Lines 57-62 Link Here
57
57
58
# ZFS support
58
# ZFS support
59
zfs_enable="NO"		# Set to YES to automatically mount ZFS file systems
59
zfs_enable="NO"		# Set to YES to automatically mount ZFS file systems
60
zfs_mount_before_fstab="" # List of ZFS datasets to mount before fstab(5)
60
61
61
gptboot_enable="YES"	# GPT boot success/failure reporting.
62
gptboot_enable="YES"	# GPT boot success/failure reporting.
62
63
(-)etc/rc.d/mountzfsbeforelocal (+33 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
6
# PROVIDE: mountzfsbeforelocal
7
# REQUIRE: root
8
# BEFORE:  mountcritlocal
9
10
. /etc/rc.subr
11
12
name="mountzfsbeforelocal"
13
rcvar="zfs_enable"
14
start_cmd="mountzfsbeforelocal_start"
15
stop_cmd="mountzfsbeforelocal_stop"
16
required_modules="zfs"
17
18
mountzfsbeforelocal_start()
19
{
20
	for fs in $zfs_mount_before_fstab; do
21
		zfs mount $fs
22
	done
23
}
24
25
mountzfsbeforelocal_stop()
26
{
27
	for fs in $zfs_mount_before_fstab; do
28
		zfs umount $fs
29
	done
30
}
31
32
load_rc_config $name
33
run_rc_command "$1"
(-)etc/rc.d/Makefile (-1 / +1 lines)
Lines 20-26 Link Here
20
	jail \
20
	jail \
21
	kadmind kerberos keyserv kldxref kpasswdd \
21
	kadmind kerberos keyserv kldxref kpasswdd \
22
	ldconfig local localpkg lockd lpd \
22
	ldconfig local localpkg lockd lpd \
23
	mixer motd mountcritlocal mountcritremote mountlate \
23
	mixer motd mountcritlocal mountcritremote mountlate mountzfsbeforelocal \
24
	mdconfig mdconfig2 mountd moused mroute6d mrouted msgs \
24
	mdconfig mdconfig2 mountd moused mroute6d mrouted msgs \
25
	named natd netif netoptions \
25
	named natd netif netoptions \
26
	newsyslog nfsclient nfscbd nfsd \
26
	newsyslog nfsclient nfscbd nfsd \

Return to bug 153666