public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH container v3] fix #3516: fix unmanaged containers
@ 2021-07-14  9:51 Oguz Bektas
  2021-07-20 11:29 ` Oguz Bektas
  2021-07-20 11:40 ` Wolfgang Bumiller
  0 siblings, 2 replies; 9+ messages in thread
From: Oguz Bektas @ 2021-07-14  9:51 UTC (permalink / raw)
  To: pve-devel

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

Tested-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Reviewed-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
---
v2-> v3:
* added comment from stoiko's reply


 src/PVE/LXC/Setup.pm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/PVE/LXC/Setup.pm b/src/PVE/LXC/Setup.pm
index 9abdc85..4408dcc 100644
--- a/src/PVE/LXC/Setup.pm
+++ b/src/PVE/LXC/Setup.pm
@@ -424,6 +424,10 @@ sub get_ct_os_release {
 sub unified_cgroupv2_support {
     my ($self) = @_;
 
+    # code in base plugin is a generic check and should work
+    # for most distributions
+    $self->{plugin} //= 'PVE::LXC::Setup::Base'; # unmanaged
+
     $self->protected_call(sub {
 	$self->{plugin}->unified_cgroupv2_support();
     });
-- 
2.30.2





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-07-20 12:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-14  9:51 [pve-devel] [PATCH container v3] fix #3516: fix unmanaged containers Oguz Bektas
2021-07-20 11:29 ` Oguz Bektas
2021-07-20 11:44   ` Thomas Lamprecht
2021-07-20 11:40 ` Wolfgang Bumiller
2021-07-20 11:49   ` Thomas Lamprecht
2021-07-20 11:51     ` Oguz Bektas
2021-07-20 11:59       ` Thomas Lamprecht
2021-07-20 12:08         ` Wolfgang Bumiller
2021-07-20 11:50   ` Wolfgang Bumiller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal