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

do not copy src directory if -S option is also given when src method is used #436

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

avg-I
Copy link
Member

@avg-I avg-I commented Feb 8, 2017

This is useful for a scenario where I want to create a jail from a pre-built source tree, but for the builds that will use the jail I want to provide a different source tree.

@bdrewery
Copy link
Member

bdrewery commented Feb 9, 2017

The patch looks fine, but why would you want a different source tree in the jail than what it was installed from?

@avg-I
Copy link
Member Author

avg-I commented Feb 9, 2017

As I understand, /usr/src is needed mostly for kernel modules and tools that talk to kernel. I use FreeBSD head, I update the kernel quite often, but the world not that often (because of how long it takes to build it).
So, I want my poudriere to pick the main (in sync with the running kernel) /usr/src via nullfs during builds. But when I rebuild the world I want to be able to use -m src=/usr/src to install or update the jail.

@bdrewery
Copy link
Member

bdrewery commented Feb 9, 2017

Are you using these jails for something other than port builds?

For port module builds the /usr/src needs to match the target kernel (and be stable for rebuilds where the jail was not updated). I suppose if you were using this jail for port builds to use packages locally you would always want the latest host /usr/src mounted in for kernel packages.

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

Successfully merging this pull request may close these issues.

2 participants