https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282832

--- Comment #7 from Pat Maddox <[email protected]> ---
I'll have to think about this some more... because I wonder if zfs-reguid
should accept a fixed value?

Consider this: a build script that creates a root pool, a read-only data pool,
and a writeable data pool. I would want the build script to just produce a
single image each. Then when attaching them to VMs, I would want them to have a
different GUID per VM - but also retain their GUIDs within a single VM.

So it would look like:

for vm in vm1 vm2 vm3; do
  cp root.zfs ${vm}.root.zfs
  import_pool ${vm}.root.zfs
  zfs reguid ${vm}-root $(lookup_guid vm1 root)
  export_pool ${vm}-root

  cp data.zfs ${vm}.data.zfs
  import_pool ${vm}.data.zfs
  zfs reguid ${vm}-data $(lookup_guid vm1 data)
  export_pool ${vm}-data
done

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to