Compare commits
2 Commits
2ab397b671
...
4d23f4ada3
Author | SHA1 | Date | |
---|---|---|---|
4d23f4ada3 | |||
3bc3c5d5bb |
@ -59,20 +59,13 @@ if (!$st || (time() - $st->mtime) > (3*24*3600)) {
|
||||
print "Your System is up-to-date\n\n";
|
||||
}
|
||||
|
||||
my $newkernel;
|
||||
foreach my $p (@$oldlist) {
|
||||
if (($p->{Package} =~ m/^(?:pve|proxmox)-kernel/) &&
|
||||
!grep { $_->{Package} eq $p->{Package} } @$pkglist) {
|
||||
$newkernel = 1;
|
||||
last;
|
||||
}
|
||||
}
|
||||
print "Removing old kernels...\n";
|
||||
system('remove-old-kernels');
|
||||
|
||||
if ($newkernel) {
|
||||
print "\n";
|
||||
print "Seems you installed a kernel update - Please consider rebooting\n" .
|
||||
"this node to activate the new kernel.\n\n";
|
||||
}
|
||||
print "Updating kernel and modules...\n";
|
||||
|
||||
# Inside checks for kernel installation and asks for a reboot
|
||||
system('update-kernel');
|
||||
}
|
||||
|
||||
|
||||
|
@ -47,6 +47,7 @@ BuildRequires: pve-acme pve-http-server >= 5.1.1 pve-access-control >= 8.1.3
|
||||
BuildRequires: proxmox-widget-toolkit >= 4.2.0
|
||||
BuildRequires: perl(AptPkg/Cache.pm) perl(File/ReadBackwards.pm) perl(Template.pm) perl(Net/DNS/Resolver.pm)
|
||||
BuildRequires: unzip gnupg
|
||||
BuildRequires: update-kernel
|
||||
|
||||
%description
|
||||
This package contains the PVE management tools
|
||||
|
Loading…
Reference in New Issue
Block a user