-
Notifications
You must be signed in to change notification settings - Fork 143
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
[BUG] Upgrade /etc scripts when migrate from RELEASE. #631
Comments
Thanks for reporting this. I've been researching a solution to this but don't have a patch yet. The fix for this will also include more documentation regarding the different jail types, when to use one over the other, and the upgrade processes for each. |
I thought I share my workaround for manually updating the
|
I have played with this issue and noticed that step 3 and 4 mentioned by manufactory should be done within jail. It is safer to avoid mistake although we have to copy the tarball to the jail. And we should do etcupdate resolve at the end to check any conflict doesn't exist. |
I agree, doing steps 3 and 4 within the jail is safer. The tarball could also be nullfs mounted into the jail to avoid copying it. |
My immediate issue was that the Doing a full etcupdate is more prudent than just commenting out some opie stuff but I hope it may unstick some other folks like it did me. |
Thank you @manufactory for documenting your workaround! It worked perfectly for me. I just added a step 5 to address the warnings produced by
will let you resolve any conflicts that occurred during merging the files (for example, if you---like me---already manually commented out the |
I face the same problem, i can't run
How to ? Is safer because $jail_root is then |
Hi eoli3n. Just to make sure, it's not a new subcomand if it's not merged. What I mean is nobody will give you advice probably (or will do it unprobably) at this point. More up to your own discretion. |
[MANDATORY] Describe the bug [MANDATORY]
When upgrading from 13.2-RELEASE to 14.0-RELEASE, there is scripts in /etc that signifiant changes. For example PAM.
The "upgrade procedure", which is like https://gist.github.com/cedwards/1e00c3d0aa6fbb14bc5b16fca8df0c35
don't fix /etc files...
Maybe this is related to #621 where documentation of upgrade is a bit.... "terse".
[MANDATORY] Bastille and FreeBSD version (paste
bastille -v && freebsd-version -kru
output)bastille -v: 0.10.20231013
freebsd-version -kru of the host
14.0-RELEASE
14.0-RELEASE
14.0-RELEASE
freebsd-version -ru (jail)
14.0-RELEASE
13.2-RELEASE-p4
[MANDATORY] How did you install bastille? (port/pkg/git)
pkg
[optional] Steps to reproduce?
Create a bastillebsd with freebsd 13.2-RELEASE, freebsd-update -r 14.0-RELEASE of the host, and upgrade pkg.
The bastille bootstrap 14.0-RELEASE to be ready.
Stop the jail, pkg edit TARGET fstab change the mount point from 13.2-RELEASE to 14.0-RELEASE
[optional] Expected behavior
Well have a better documentation on how to do the etcupdate (or equivalent) of the jail
[optional] Screenshots
n/a
[optional] Additional context
n/a
The text was updated successfully, but these errors were encountered: