mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-16 08:44:30 +00:00
Add extra optional list to pveversion
if the packet on the opt list is not installed, it will not shown.
This commit is contained in:
parent
ce73ba1eef
commit
241c6f94c5
@ -536,9 +536,12 @@ __PACKAGE__->register_method({
|
||||
|
||||
# comment out old packages uses before 4.0
|
||||
# clvm resource-agents-pve fence-agents-pve vzctl vzprocps vzquota
|
||||
|
||||
|
||||
my @opt_pack = ('zfsutils');
|
||||
|
||||
push @list, qw(lvm2 corosync-pve libqb0 pve-cluster qemu-server pve-firmware libpve-common-perl libpve-access-control libpve-storage-perl pve-libspice-server1 vncterm pve-qemu-kvm pve-container pve-firewall pve-ha-manager ksm-control-daemon glusterfs-client lxc-pve lxcfs cgmanager);
|
||||
|
||||
@list = (@list, @opt_pack);
|
||||
my $pkglist = [];
|
||||
|
||||
my (undef, undef, $kernel_release) = POSIX::uname();
|
||||
@ -567,6 +570,9 @@ __PACKAGE__->register_method({
|
||||
} elsif ($pkgname eq 'proxmox-ve') {
|
||||
$res->{RunningKernel} = $kernel_release;
|
||||
}
|
||||
if (grep( /^$pkgname$/, @opt_pack)) {
|
||||
next if $res->{CurrentState} eq 'NotInstalled';
|
||||
}
|
||||
|
||||
push @$pkglist, $res;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user