aboutsummaryrefslogtreecommitdiff
path: root/libexec/rc/rc.d/zpoolupgrade
blob: 5e623a9c2bf093da1d3dc5190c0ee86ed6f606ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

# PROVIDE: zpoolupgrade
# REQUIRE: zpool
# BEFORE: FILESYSTEMS
# KEYWORD: firstboot nojail

. /etc/rc.subr

name="zpoolupgrade"
desc="Upgrade zpool version"
rcvar="zfs_enable"
start_cmd="zpoolupgrade_start"

zpoolupgrade_start()
{
	local pool

	for pool in ${zpool_upgrade}; do
		zpool upgrade $pool
	done
}

load_rc_config $name

# doesn't make sense to run in a svcj: config setting
zpoolupgrade_svcj="NO"

run_rc_command "$1"