[pve-devel] [PATCH v4 container 0/2] post_clone hook for containers

Oguz Bektas o.bektas at proxmox.com
Wed Jun 16 15:24:20 CEST 2021


fixes #3443 by implementing post_clone_hook for containers (which at the
moment only generates a unique /etc/machine-id for the cloned
container). this can be reused later for other things we want to do post
clone.



Oguz Bektas (2):
  setup: add post_clone_hook for containers
  run post_clone_hook in clone_vm

 src/PVE/API2/LXC.pm       | 37 ++++++++++++++++++++++++++++++-------
 src/PVE/LXC/Setup.pm      | 12 ++++++++++++
 src/PVE/LXC/Setup/Base.pm | 31 +++++++++++++++++++++++++++++++
 3 files changed, 73 insertions(+), 7 deletions(-)

-- 
2.20.1






More information about the pve-devel mailing list