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

mount_nullfs says "No such file or directory" and fails to mount when starting a pot #45

Closed
0mp opened this issue Sep 27, 2018 · 2 comments
Labels

Comments

@0mp
Copy link
Contributor

0mp commented Sep 27, 2018

Here's what I've done:

sudo pot init
sudo pot create-base -r 11.2
sudo pot create -p committer-pot -b 11.2
sudo pot create-fscomp -f svn-ports
sudo pot create-fscomp -f svn-src
sudo pot create-fscomp -f svn-doc
sudo pot add-fscomp -p committer-pot -f svn-src -m ~/freebsd/svn/src/
sudo pot add-fscomp -p committer-pot -f svn-ports -m ~/freebsd/svn/ports/
sudo pot add-fscomp -p committer-pot -f svn-doc -m ~/freebsd/svn/doc/
sudo pot snapshot -p committer-pot
sudo pot start committer-pot

As a result of the last command I got:

mount_nullfs: /opt/pot/jails/committer-pot/m/home: No such file or directory
###>  Error mounting /opt/pot/fscomp/svn-src
ifconfig: interface destroy does not exist
###>  Mount failed

It happens every time I try to run sudo pot start committer-pot.

@0mp
Copy link
Contributor Author

0mp commented Sep 27, 2018

I managed to start a pot with those commands:

sudo pot create -p pot0 -b 11.2
sudo pot add-fscomp -p pot0 -f svn-src -m /mnt
sudo pot start pot0

@pizzamig
Copy link
Collaborator

I'm able to reproduce the error.
The problem is the expansion of ~ , that happen outside the container, so it would try to use the $HOME of the current user.
The real problem, here, is that it's quite hard to validate the argument of the -m option
If you use an existing absolute pathname (like /mnt) you are fine, but there is room from improvement for sure

@pizzamig pizzamig added the bug label Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants