diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 27e355c8..a11153ec 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -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;