Skip to content

Check whether the current user has access to KVM before attempting to add udev rule#141

Merged
gustavderdrache merged 2 commits intoDeterminateSystems:mainfrom
JTKBowers:main
Apr 23, 2025
Merged

Check whether the current user has access to KVM before attempting to add udev rule#141
gustavderdrache merged 2 commits intoDeterminateSystems:mainfrom
JTKBowers:main

Conversation

@JTKBowers
Copy link
Copy Markdown
Contributor

@JTKBowers JTKBowers commented Feb 20, 2025

Description

I've recently started using this action with a runner using act, which uses docker containers to provide the standard actions environments (such as ubuntu-latest). I'd like to use this action to install nix with kvm enabled, but currently the KVM setup fails due to udev not being installed in the docker container.

KVM is already fully functional inside the container (I've passed /dev/kvm to the docker container and added the runner user to the kvm group), so installing udev and modifying rules is unnecessary.

This PR checks whether KVM is available to the current user, and if it is then it skips setting up udev rules.

Checklist
  • Tested changes against a test repository
  • Added or updated relevant documentation (leave unchecked if not applicable)
  • (If this PR is for a release) Updated README to point to the new tag (leave unchecked if not applicable)

@gustavderdrache gustavderdrache merged commit b669a07 into DeterminateSystems:main Apr 23, 2025
17 checks passed
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.

2 participants