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

Allow using the base system as a jail #429

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

mat813
Copy link
Member

@mat813 mat813 commented Dec 20, 2016

(work in progress)

So, looking at what synth does, I need to be able to null_mount, or clone with cpdup, or something, those:

tmpfs                   /some/where
/bin                    /some/where/bin
/boot                   /some/where/boot
tmpfs                   /some/where/boot/modules
devfs                   /some/where/dev
/lib                    /some/where/lib
/libexec                /some/where/libexec
/sbin                   /some/where/sbin
/usr/bin                /some/where/usr/bin
/usr/include            /some/where/usr/include
/usr/lib                /some/where/usr/lib
/usr/lib32              /some/where/usr/lib32
/usr/libdata            /some/where/usr/libdata
/usr/libexec            /some/where/usr/libexec
/usr/ports              /some/where/usr/ports
/usr/ports/distfiles    /some/where/distfiles
tmpfs                   /some/where/usr/local
/usr/sbin               /some/where/usr/sbin
/usr/share              /some/where/usr/share
/usr/src                /some/where/usr/src
/var/db/options         /some/where/options
/usr/ports/packages     /some/where/packages

This needs to happen in a special case of the "else" of clonefs, but I am unsure of how to proceed.

@bdrewery
Copy link
Member

bdrewery commented Feb 2, 2017

Thanks for this, I'll review soon.

@moufjenkins
Copy link

Can one of the admins verify this patch?

@driesmp
Copy link
Member

driesmp commented Aug 12, 2018

Hello, any news/progress on this?

@bdrewery
Copy link
Member

bdrewery commented Sep 6, 2018

Yes it is definitely wanted but no longer applies after refactoring.

@driesmp
Copy link
Member

driesmp commented Sep 6, 2018

Would it help if I resubmit the patches with another PR against the current tree?

@bdrewery
Copy link
Member

bdrewery commented Sep 6, 2018

It might help but it was not 100% complete. Poudriere makes assumptions that it can rollback anything it does during the build which won't hold true for this method. So a lot of care is needed to ensure the / system isn't trashed. And Poudriere assumes there's no packages installed in the "jail" when it starts building, so there's likely going to be several issues with actually building ports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants