[pve-devel] [PATCH v2 container] fix #3516: fix unmanaged containers

Oguz Bektas o.bektas at proxmox.com
Tue Jul 13 14:33:33 CEST 2021


unmanaged containers should run the unified cgroupv2 code from our base
plugin so that they can start correctly instead of erroring out

Signed-off-by: Oguz Bektas <o.bektas at proxmox.com>
---
v1->v2:
* run code from base plugin instead of skipping it completely


 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 9abdc85..c4c73e1 100644
--- a/src/PVE/LXC/Setup.pm
+++ b/src/PVE/LXC/Setup.pm
@@ -424,6 +424,8 @@ sub get_ct_os_release {
 sub unified_cgroupv2_support {
     my ($self) = @_;
 
+    $self->{plugin} //= 'PVE::LXC::Setup::Base'; # unmanaged
+
     $self->protected_call(sub {
 	$self->{plugin}->unified_cgroupv2_support();
     });
-- 
2.30.2






More information about the pve-devel mailing list