Recommended upgrade method for jails, moving to pkgbase.

Hi!

I have a system running FreeBSD 15.0-RELEASE. The machine was upgraded to 15.0 using traditional freebsd-update(8) procedure and then pkgbasified using pkgbasify and some modifications to the lua script.

Now I want to upgrade a number of jails on that machine that are running 14.3-RELEASE-p6.

What are your recommendations for the upgrade path? Should I run freebsd-update(8) to 15.0 for all jails first and then pkgbasify? or could I just pkgbasify directly and then do a pkgbased upgrade to 15?

The other problem I ran into is that I cant get pkgbasify to run inside jails, it runs into chflags-problems. I have allow.chflags=1 but somehow I still encounter problems.

Optimal for me would be I could just run pkgbasify from outside the but it seems that is not supported by the script.
 
Hi!

I have a system running FreeBSD 15.0-RELEASE. The machine was upgraded to 15.0 using traditional freebsd-update(8) procedure and then pkgbasified using pkgbasify and some modifications to the lua script.

Now I want to upgrade a number of jails on that machine that are running 14.3-RELEASE-p6.

What are your recommendations for the upgrade path? Should I run freebsd-update(8) to 15.0 for all jails first and then pkgbasify? or could I just pkgbasify directly and then do a pkgbased upgrade to 15?

The other problem I ran into is that I cant get pkgbasify to run inside jails, it runs into chflags-problems. I have allow.chflags=1 but somehow I still encounter problems.

Optimal for me would be I could just run pkgbasify from outside the but it seems that is not supported by the script.
It does have an open PR with the --rootdir flag. Maybe you could test that…
 
I think it would be helpful if you linked the PR in question.

For Bastille Jails there is a webpage Pkgbase that mentions the use of --rootdir; might be helpful.
Yes, but there is no --rootdir option available in the pkgbasify script right now. But it seems to be in the making.
 
Yes, but there is no --rootdir option available in the pkgbasify script right now. But it seems to be in the making.
I’ve updated the docs for bastille. I think they are looking for testers over at the pkgbasify repo.

I’ll do some testing on it myself.
 
Back
Top