mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-27 09:59:33 +00:00
pve7to8: Add check for dkms modules
... and warn if at least one is present. Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
parent
a622cbf0d9
commit
0329876ccf
@ -1328,6 +1328,27 @@ sub check_bootloader {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub check_dkms_modules {
|
||||||
|
log_info("Check for dkms modules...");
|
||||||
|
|
||||||
|
my $count;
|
||||||
|
my $set_count = sub {
|
||||||
|
$count = scalar @_;
|
||||||
|
};
|
||||||
|
|
||||||
|
my $exit_code = eval {
|
||||||
|
run_command(['dkms', 'status', '-k', '`uname -r`'], outfunc => $set_count, noerr => 1)
|
||||||
|
};
|
||||||
|
|
||||||
|
if ($exit_code != 0) {
|
||||||
|
log_skip("could not get dkms status");
|
||||||
|
} elsif (!$count) {
|
||||||
|
log_pass("no dkms modules found");
|
||||||
|
} else {
|
||||||
|
log_warn("dkms modules found, this might cause issues during upgrade.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sub check_misc {
|
sub check_misc {
|
||||||
print_header("MISCELLANEOUS CHECKS");
|
print_header("MISCELLANEOUS CHECKS");
|
||||||
my $ssh_config = eval { PVE::Tools::file_get_contents('/root/.ssh/config') };
|
my $ssh_config = eval { PVE::Tools::file_get_contents('/root/.ssh/config') };
|
||||||
@ -1429,6 +1450,7 @@ sub check_misc {
|
|||||||
check_apt_repos();
|
check_apt_repos();
|
||||||
check_nvidia_vgpu_service();
|
check_nvidia_vgpu_service();
|
||||||
check_bootloader();
|
check_bootloader();
|
||||||
|
check_dkms_modules();
|
||||||
}
|
}
|
||||||
|
|
||||||
my sub colored_if {
|
my sub colored_if {
|
||||||
|
Loading…
Reference in New Issue
Block a user