on current debian buster, stock kernel images recommend
firmware-linux-free which conflict with our pve-firmware package
which leads to apt wanting to remove promxox-ve
check for the meta package in the update check script
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
use PVE::Tools qw(run_command $IPV4RE $IPV6RE);
use PVE::QemuServer;
+use AptPkg::Cache;
use Socket qw(AF_INET AF_INET6 inet_ntop);
use Term::ANSIColor;
} else {
log_warn("unexpected running and installed kernel '$kernel_ver'.");
}
+
+ }
+ print "\nChecking for installed Debian Kernel..\n";
+ if(my $apt_cache = AptPkg::Cache->new()) {
+ my $p = $apt_cache->{'linux-image-amd64'};
+ if ($p && $p->{SelectedState} eq 'Install') {
+ log_fail("Stock Debian kernel package installed. Please remove package 'linux-image-amd64'.");
+ } else {
+ log_pass("Stock Debian kernel package not installed.");
+ }
+
+ } else {
+ log_fail("unable to initialize AptPkg::Cache\n");
}
}