mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-03 01:29:13 +00:00
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:
parent
7c2d9b4089
commit
cc111f2ab5
@ -36,7 +36,7 @@ use PVE::SafeSyslog;
|
|||||||
use PVE::Storage;
|
use PVE::Storage;
|
||||||
use PVE::SysFSTools;
|
use PVE::SysFSTools;
|
||||||
use PVE::Systemd;
|
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::QMPClient;
|
||||||
use PVE::QemuConfig;
|
use PVE::QemuConfig;
|
||||||
@ -3417,12 +3417,6 @@ sub vga_conf_has_spice {
|
|||||||
return $1 || 1;
|
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($) {
|
sub is_native($) {
|
||||||
my ($arch) = @_;
|
my ($arch) = @_;
|
||||||
return get_host_arch() eq $arch;
|
return get_host_arch() eq $arch;
|
||||||
|
Loading…
Reference in New Issue
Block a user