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

A hook for mounting an extra-patches directory into the jail #928

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

Conversation

dlangille
Copy link

I've been using this for over two years. It was recently updated
based upon suggestions:

https://gist.github.com/dlangille/924507ce545de8fbbe78b50b752997ce

Background:https://dan.langille.org/2019/08/10/poudriere-hooks/

Change /usr/local/etc/poudriere.d/local-patches to ${POUDRIERED}/local-patches
This morning my cronjob was spewing errors:

mkdir: /usr/local/poudriere/data/.m/122amd64-default-primary/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/122amd64-default-primary/01/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/122amd64-default-primary/04/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/122amd64-default-primary/03/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/122amd64-default-primary/02/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/122amd64-default-mysql57/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/122amd64-default-mysql80/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/122amd64-default-pg96/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/122amd64-default-pg10/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/122amd64-default-pg11/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/122amd64-default-pg12/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/122amd64-default-pg13/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/122amd64-default-unifi/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/122i386-default-primaryi386/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13amd64-default-primary/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13amd64-default-primary/03/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13amd64-default-primary/04/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13amd64-default-primary/01/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13amd64-default-primary/02/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13amd64-default-mysql57/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13amd64-default-mysql80/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13amd64-default-pg96/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13amd64-default-pg10/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13amd64-default-pg11/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13amd64-default-pg12/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13amd64-default-pg13/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13amd64-default-unifi/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13i386-default-primaryi386/ref/local-patches: File exists
@dlangille
Copy link
Author

dlangille commented Oct 16, 2021

Removing the directory check produced many errors in my overnight cronjob. I reverted that change and pushed it.

mkdir: /usr/local/poudriere/data/.m/122amd64-default-primary/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/122amd64-default-primary/01/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/122amd64-default-primary/04/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/122amd64-default-primary/03/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/122amd64-default-primary/02/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/122amd64-default-mysql57/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/122amd64-default-mysql80/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/122amd64-default-pg96/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/122amd64-default-pg10/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/122amd64-default-pg11/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/122amd64-default-pg12/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/122amd64-default-pg13/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/122amd64-default-unifi/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/122i386-default-primaryi386/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13amd64-default-primary/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13amd64-default-primary/03/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13amd64-default-primary/04/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13amd64-default-primary/01/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13amd64-default-primary/02/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13amd64-default-mysql57/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13amd64-default-mysql80/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13amd64-default-pg96/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13amd64-default-pg10/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13amd64-default-pg11/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13amd64-default-pg12/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13amd64-default-pg13/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13amd64-default-unifi/ref/local-patches: File exists
mkdir: /usr/local/poudriere/data/.m/13i386-default-primaryi386/ref/local-patches: File exists

bdrewery and others added 4 commits October 18, 2021 12:00
Reported by:	Mark Millard
build_repo is currently blocked for dry run modes and building the repo
in a test situation does not seem prudent. For now just disable this as
it is very new.

Fixes 1ee1367
Seems I did not include the -p when I removed the if during my testing.
@dlangille
Copy link
Author

My latest push brought in commits unrelated to the hook. I'll fix that up.

@network-shark
Copy link

Still not merged after two years ? Any concerns ?

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.

4 participants