* [pve-devel] [PATCH container] fix #3516: skip cgroupv2 for unmanaged containers
@ 2021-07-13 12:22 Oguz Bektas
0 siblings, 0 replies; only message in thread
From: Oguz Bektas @ 2021-07-13 12:22 UTC (permalink / raw)
To: pve-devel
so that they can start correctly instead of erroring out
Signed-off-by: Oguz Bektas <o.bektas@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 9abdc85..c3888f3 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) = @_;
+ return if !$self->{plugin}; # unmanaged
+
$self->protected_call(sub {
$self->{plugin}->unified_cgroupv2_support();
});
--
2.30.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-13 12:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-13 12:22 [pve-devel] [PATCH container] fix #3516: skip cgroupv2 for unmanaged containers Oguz Bektas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox