mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-23 20:13:35 +00:00
pve6to7: remember if cgroup is forced to legacy
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
2445be40e3
commit
06f915e63f
@ -44,6 +44,8 @@ my $min_pve_major = 6;
|
||||
my $min_pve_minor = 4;
|
||||
my $min_pve_pkgrel = 1;
|
||||
|
||||
my $forced_legacy_cgroup = 0;
|
||||
|
||||
my $counters = {
|
||||
pass => 0,
|
||||
skip => 0,
|
||||
@ -874,9 +876,7 @@ sub check_storage_content {
|
||||
}
|
||||
|
||||
sub check_containers_cgroup_compat {
|
||||
|
||||
my $kernel_cli = PVE::Tools::file_get_contents('/proc/cmdline');
|
||||
if ($kernel_cli =~ /systemd.unified_cgroup_hierarchy=0/){
|
||||
if ($forced_legacy_cgroup) {
|
||||
log_skip("System explicitly configured for legacy hybrid cgroup hierarchy.");
|
||||
return;
|
||||
}
|
||||
@ -1137,6 +1137,11 @@ __PACKAGE__->register_method ({
|
||||
code => sub {
|
||||
my ($param) = @_;
|
||||
|
||||
my $kernel_cli = PVE::Tools::file_get_contents('/proc/cmdline');
|
||||
if ($kernel_cli =~ /systemd.unified_cgroup_hierarchy=0/){
|
||||
$forced_legacy_cgroup = 1;
|
||||
}
|
||||
|
||||
check_pve_packages();
|
||||
check_cluster_corosync();
|
||||
check_ceph();
|
||||
|
Loading…
Reference in New Issue
Block a user