-
Notifications
You must be signed in to change notification settings - Fork 145
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
mount.sh now accepts nullfs mounted files #737
Conversation
@tschettervictor can you test this one also so we can make sure it is good |
So the flow here seems to be this. If the host path is a directory or a file, then it is acceptable. I had an issue mounting the file though. This was because the mount command expects the file to be present or it will fail to mount. I would change the command to the following.
This will
The above worked fine for me. @nullobsi |
I've updated my last comment. This will ensure that if the file you are trying to mount is not present inside the jail, it will first be created, and also, if there are directories missing in the files path, they will also be created. Tests are passing with that block. |
Only things you are missing is inside the "umount" command. That check also needs to be changed from "-d" to "-e" |
Hmmm. There are actually way more bugs in the mound and unmount that I first realized. I'll include this one to allow file mounting also. |
@tschettervictor should this one be closed since you opened another PR to address this along with the other mount errors? |
I believe so. My PR fixes this along with a number of other bugs I found. |
fixed in #778 |
It is sometimes desirable to nullfs mount a single file into a jail, like resolv.conf, hosts, or otherwise. However, using a MOUNT in a Bastillefile with a file mount currently throws an error. The script needs a small adaptation to accept files.