HomeFreeBSD

rc: Add a zpoolreguid rc.d script

Description

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)
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 227caacc918a8c9b32608cff42116e7d890b9ddc)

Details

Provenance
markjAuthored on May 30 2022, 2:43 PM
Parents
rG0a356f1eb989: vm_object: Assert that overcommit charge is released in the object dtor
Branches
Unknown
Tags
Unknown