Skip to content

Chroot backend #789

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pedrudehuere opened this issue Mar 3, 2025 · 1 comment
Open

Chroot backend #789

pedrudehuere opened this issue Mar 3, 2025 · 1 comment

Comments

@pedrudehuere
Copy link

Hello, I noticed there's a chroot backend that is not documented, I also noticed that it does not work because of a bug.
What are the plans for that backend?
Would you accept pull-requests to fix it?

@pedrudehuere
Copy link
Author

I found a workaround by creating things by hand instead of using get_host()

rootfs = "/the/rootfs/"
backend = testinfra.backend.chroot.ChrootBackend(rootfs)
self.host = testinfra.host.Host(backend)

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

No branches or pull requests

1 participant