]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
rc: Add a zpoolreguid rc.d script
authorMark Johnston <markj@FreeBSD.org>
Mon, 30 May 2022 14:43:44 +0000 (10:43 -0400)
committerMark Johnston <markj@FreeBSD.org>
Mon, 30 May 2022 14:43:44 +0000 (10:43 -0400)
commit227caacc918a8c9b32608cff42116e7d890b9ddc
tree665bd7a199ec32d4e0b90bc89fc133fae8beb656
parentef7a6f1dedb7951aa75ec13a87a3f60d410e2380
rc: Add a zpoolreguid rc.d script

If one boots up multiple copies of a template VM image containing a
zpool, the pool GUIDs will be identical, making it impossible to, e.g.,
share datasets between them.

This diff introduces a simple workaround for the problem: one can use
the script to, upon first boot, assign a new GUID to one or more zpools.
This will be useful when building ZFS-based VM images from release(7).

Reviewed by: mav, allanjude, asomers
Reviewed by: Pau Amma (docs)
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D35336
libexec/rc/rc.conf
libexec/rc/rc.d/Makefile
libexec/rc/rc.d/zpoolreguid [new file with mode: 0755]
share/man/man5/rc.conf.5