aboutsummaryrefslogtreecommitdiff
path: root/libexec/rc/rc.d/Makefile
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2022-05-30 14:43:44 +0000
committerMark Johnston <markj@FreeBSD.org>2022-05-30 14:43:44 +0000
commit227caacc918a8c9b32608cff42116e7d890b9ddc (patch)
tree665bd7a199ec32d4e0b90bc89fc133fae8beb656 /libexec/rc/rc.d/Makefile
parentef7a6f1dedb7951aa75ec13a87a3f60d410e2380 (diff)
downloadsrc-227caacc918a8c9b32608cff42116e7d890b9ddc.tar.gz
src-227caacc918a8c9b32608cff42116e7d890b9ddc.zip
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
Diffstat (limited to 'libexec/rc/rc.d/Makefile')
-rw-r--r--libexec/rc/rc.d/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/libexec/rc/rc.d/Makefile b/libexec/rc/rc.d/Makefile
index c61d4528bcee..3eabd17df993 100644
--- a/libexec/rc/rc.d/Makefile
+++ b/libexec/rc/rc.d/Makefile
@@ -326,6 +326,7 @@ ZFS+= zfsbe
ZFS+= zfsd
ZFS+= zfskeys
ZFS+= zpool
+ZFS+= zpoolreguid
ZFS+= zvol
ZFSPACKAGE= rc
.endif