xref: /freebsd/libexec/rc/rc.d/zpoolupgrade (revision b077aed33b7b6aefca7b17ddb250cf521f938613)
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
25run_rc_command "$1"
26