Use get_host_arch from PVE::Tools

...now that it no longer does LXC-specific stuff. Removes a FIXME.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
This commit is contained in:
Stefan Reiter 2019-10-28 12:59:15 +01:00 committed by Thomas Lamprecht
parent 7c2d9b4089
commit cc111f2ab5

View File

@ -36,7 +36,7 @@ use PVE::SafeSyslog;
use PVE::Storage;
use PVE::SysFSTools;
use PVE::Systemd;
use PVE::Tools qw(run_command lock_file lock_file_full file_read_firstline dir_glob_foreach $IPV6RE);
use PVE::Tools qw(run_command lock_file lock_file_full file_read_firstline dir_glob_foreach get_host_arch $IPV6RE);
use PVE::QMPClient;
use PVE::QemuConfig;
@ -3417,12 +3417,6 @@ sub vga_conf_has_spice {
return $1 || 1;
}
my $host_arch; # FIXME: fix PVE::Tools::get_host_arch
sub get_host_arch() {
$host_arch = (POSIX::uname())[4] if !$host_arch;
return $host_arch;
}
sub is_native($) {
my ($arch) = @_;
return get_host_arch() eq $arch;