Open smortex opened 3 months ago
same problem here in a lxc container with Ubuntu 22.04 and Ubuntu 20.04
Warning: Facter: Container runtime, 'lxc', is unsupported, setting to, 'container_other'
@bibi21000 you're running into https://github.com/puppetlabs/facter/issues/2737
@joshcooper ty for information
same here on OpenBSD with facter 4.8.0:
facter33 virtual [2024-08-19 08:04:38.279003 ] WARN Facter::Resolvers::Containers - Unable to getenv for pid 1, 'uninitialized constant Facter::Util::Linux' physical
Describe the Bug
Expected Behavior
No warning about something that looks suspiciously Linux-related :-)
Steps to Reproduce
Run facter 4.8.0 on a FreeBSD system
Environment
Additional Context
The problem is incidentally introduced by #2574 where Linux specific code is added to
lib/facter/resolvers/containers.rb
, a file which based on its name is supposed to be platform-agnostic.After further investigation, this file is really platform-specific and not in the right directory. A few other files have the same problem. I will open two PR to: