Skip to content

Conversation

@JacobCoffee
Copy link
Member

@JacobCoffee JacobCoffee commented Dec 12, 2025

Description

  • when i run /usr/bin/systemd-detect-virt it returns none but we dont account for that:
    after manual testing
admin@host:~$ /usr/bin/systemd-detect-virt
none

# loading it after fix:
admin@host:~$ sudo salt-call saltutil.sync_grains
[CRITICAL] Failed to load grains defined in grain file detect_virt.main in function <LoadedFunc name='detect_virt.main'>, error:
...
subprocess.CalledProcessError: Command '['/usr/bin/systemd-detect-virt']' returned non-zero exit status 1.
local:
    - grains.detect_virt
admin@host:~$ sudo salt-call saltutil.sync_grains
local:

@JacobCoffee JacobCoffee merged commit d31031c into main Dec 12, 2025
3 checks passed
@JacobCoffee JacobCoffee deleted the detect-virt-fix branch December 12, 2025 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants