]> git.proxmox.com Git - pve-common.git/commit - src/PVE/Tools.pm
tools: get_host_arch: return raw uname machine entry
authorStefan Reiter <s.reiter@proxmox.com>
Mon, 28 Oct 2019 11:59:13 +0000 (12:59 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 29 Oct 2019 06:13:54 +0000 (07:13 +0100)
commitce007e99ffc7fb5df563acb7505461010366ecb8
treef8b6b144be8a766db605c83e2851b6e451aa38f4
parenta79f03d9a62f1b1c8c850f9f78729d7eabb17636
tools: get_host_arch: return raw uname machine entry

The current version had only one user in LXC, so move the LXC-specific
code there to reuse this in QemuServer.

Also cache, since the host's architecture can't change during runtime.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
src/PVE/Tools.pm