Skip to content
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

python 2.7 - os.popen "function not implemented" / mount -o loop fails #16

Open
torpesco opened this issue May 9, 2017 · 0 comments
Open

Comments

@torpesco
Copy link

torpesco commented May 9, 2017

Is there a reason pflask doesn't use devtmpfs for /dev? To have a minimal set of devices available?

I tried to use pflask to build a project in an isolated chroot environment recently and ran into two issues:

  1. os.popen in Python 2.7 fails. I get "[Errno 38] Function not implemented".
    • Using popen() in a test C program worked fine.
    • os.popen is deprecated. When I changed the script in my working copy to use subprocess.Popen, it worked.
  2. mount -o loop fails

Both of these were fixed using this brute-force change:
torpesco@a40dfb0

Is there an alternate solution that would be preferred?

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