[pve-devel] [PATCH v5 pve-container 5/5] fix #6897: also warn in the post_clone and post_create hooks

Robert Obkircher r.obkircher at proxmox.com
Mon Nov 17 12:51:33 CET 2025


Signed-off-by: Robert Obkircher <r.obkircher at proxmox.com>
---
 src/PVE/LXC/Setup.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/PVE/LXC/Setup.pm b/src/PVE/LXC/Setup.pm
index adb8d6c..113093d 100644
--- a/src/PVE/LXC/Setup.pm
+++ b/src/PVE/LXC/Setup.pm
@@ -316,6 +316,7 @@ sub post_clone_hook {
     my ($self, $conf) = @_;
 
     $self->protected_call(sub { $self->{plugin}->post_clone_hook($conf) });
+    $self->check_systemd_nesting();
 }
 
 sub post_create_hook {
@@ -325,6 +326,7 @@ sub post_create_hook {
         $self->{plugin}->post_create_hook($self->{conf}, $root_password, $ssh_keys);
     });
     $self->rewrite_ssh_host_keys();
+    $self->check_systemd_nesting();
 }
 
 sub unified_cgroupv2_support {
-- 
2.47.3





More information about the pve-devel mailing list