]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - libexec/rc/rc.d/zpoolreguid
MFV: less v632.
[FreeBSD/FreeBSD.git] / libexec / rc / rc.d / zpoolreguid
1 #!/bin/sh
2
3 # PROVIDE: zpoolreguid
4 # REQUIRE: zpool
5 # BEFORE: mountcritlocal
6 # KEYWORD: firstboot nojail
7
8 . /etc/rc.subr
9
10 name="zpoolreguid"
11 desc="Generate a new zpool GUID"
12 rcvar="zfs_enable"
13 start_cmd="zpoolreguid_start"
14
15 zpoolreguid_start()
16 {
17         local pool
18
19         for pool in ${zpool_reguid}; do
20                 zpool reguid $pool
21         done
22 }
23
24 load_rc_config $name
25 run_rc_command "$1"