[pve-devel] [PATCH v2 container 2/5] consider lxc.cgroup2.cpuset.cpus as explicit cpuset

Wolfgang Bumiller w.bumiller at proxmox.com
Thu Apr 9 13:28:36 CEST 2020


We should not override it in either case.

Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
Same as v1

 src/PVE/LXC.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm
index 9adb366..914dc2a 100644
--- a/src/PVE/LXC.pm
+++ b/src/PVE/LXC.pm
@@ -711,7 +711,7 @@ sub update_lxc_config {
     if (my $lxcconf = $conf->{lxc}) {
 	foreach my $entry (@$lxcconf) {
 	    my ($k, $v) = @$entry;
-	    $had_cpuset = 1 if $k eq 'lxc.cgroup.cpuset.cpus';
+	    $had_cpuset = 1 if $k eq 'lxc.cgroup.cpuset.cpus' || $k eq 'lxc.cgroup2.cpuset.cpus';
 	    $raw .= "$k = $v\n";
 	}
     }
-- 
2.20.1





More information about the pve-devel mailing list