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
device is not configured when running in chroot'd folder #37637
Comments
Is your project closed source? Do you have a reproducible snippet (a smaller one makes investigation easier, but it doesn't have to be) that can be used to reproduce this issue? |
Here is a sample.... hello.go
check.go
To build:
test to make certain it runs...
produces
Then.... try to run in chroot
and this produces....
so the problem is that the Output() is trying to open the NULL device and that device does not exist in OpenBSD6.6 chroot. |
One more note. I created a
then tried to run it again
this time I got
|
LASTLY... it is possible that |
You should set stdin, stdout, and stderr of your command.
Same for |
Any OpenBSD system should have a file |
This appears to be working as intended. Within a chroot either
@ianlancetaylor this is specifically within chroot where OpenBSD won't automatically create |
Thanks. It sounds like this is not a problem in the Go standard library, so closing. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
unknown
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I have compiled my project and it runs from the command line ok, however, in the larger scope of the project this executable is executed via os.Command("runme").Output()... and that's running inside an
OpenBSD chroot.
What did you expect to see?
I expected it to tun to completion without errors as it did in the command line
What did you see instead?
When I triggered my inside app... I received my first error which was
open /dev/null file or directory not found
. So I performed aMAKEDEV std
on that machine in the inner most to be chroot'd folder.... then ran my program and receivedopen /dev/null device not configured
I'm currently trying to figure out what is wrong with my
/dev/null
but in the meantime... which devices are required or recommended?The text was updated successfully, but these errors were encountered: