]> git.proxmox.com Git - pve-container.git/commitdiff
consider lxc.cgroup2.cpuset.cpus as explicit cpuset
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 9 Apr 2020 11:28:36 +0000 (13:28 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 29 Apr 2020 06:53:41 +0000 (08:53 +0200)
We should not override it in either case.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/PVE/LXC.pm

index fbe736e7f37ae21b28e0240bba5925e76de2debd..9382700983cd6ec654b4e39990269227b3e5cc93 100644 (file)
@@ -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";
        }
     }