[Pkg-puppet-devel] Bug#1040767: facter: inconsistent detection of Xen dom0
Jérôme Charaoui
jerome at riseup.net
Sat Aug 31 00:36:52 BST 2024
On Wed, 19 Jul 2023 09:48:21 +0000 Sergio Gelato
<sergio.gelato at astro.su.se> wrote:
> systemd has a similar issue, tracked in #1038901. (Maybe one should ask the virt-what maintainers whether they agree with https://github.com/systemd/systemd/issues/28113#issuecomment-1621986461, in which case this bug can be reassigned to virt-what.)
>
Actually the origin of the bug could indeed be facter.
If you look at the virt-what resolver [0], it's just matching for
strings in the output. If the output of virt-what contains both
'xen-hvm' and 'xen-dom0' then 'xenhvm' is going to be used because
'xen-hvm' will match first. It's possible we might want to actually
match for 'xen-dom0' *first*, but this all depends on virt-what's full
output.
Would it be possible to share here what virt-what is outputting both on
dom0 and domU?
Thanks,
-- Jérôme
[0]
https://github.com/puppetlabs/facter/blob/main/lib/facter/resolvers/virt_what.rb#L25-L35
More information about the Pkg-puppet-devel
mailing list