xref: /freebsd/libexec/rc/rc.d/zpoolupgrade (revision 96190b4fef3b4a0cc3ca0606b0c4e3e69a5e6717)
1#!/bin/sh
2
3# PROVIDE: zpoolupgrade
4# REQUIRE: zpool
5# BEFORE: mountcritlocal
6# KEYWORD: firstboot nojail
7
8. /etc/rc.subr
9
10name="zpoolupgrade"
11desc="Upgrade zpool version"
12rcvar="zfs_enable"
13start_cmd="zpoolupgrade_start"
14
15zpoolupgrade_start()
16{
17	local pool
18
19	for pool in ${zpool_upgrade}; do
20		zpool upgrade $pool
21	done
22}
23
24load_rc_config $name
25
26# doesn't make sense to run in a svcj: config setting
27zpoolupgrade_svcj="NO"
28
29run_rc_command "$1"
30