jails question about upgrade jail from 14.2 to 14.3 with bastille ?

Dear all:
i have used bastille to manage my jail ...
now , i wan to upgrade all jail from 14.2 to 14.3 ....
note : my host was freebsd14.3 , my jail was 14.2 ...

two method upgrading:
1. bastille upgrade xxxjail 14.3-RELEASE
2. freebsd-update -j xxxjail upgrade -r 14.3-RELEASE
the 2method ,will download patch from internet . that was so slowly...i want to fast it with offline 14.3.iso fle .

note : the bastille bootstrap 14.3-RELEASE was already .

how to fast it about upgrade jail ? thanks.
 
Don't. The "problem" is that the base jail will still be called 14.2-RELEASE (see bastille list release). Which is going to be utterly confusing. Bootstrap a new base jail with the new version. Shutdown the jail, modify the jail's fstab and start it. Then use etcupdate(8) to update the jail's /etc/.
 
Don't. The "problem" is that the base jail will still be called 14.2-RELEASE (see bastille list release). Which is going to be utterly confusing. Bootstrap a new base jail with the new version. Shutdown the jail, modify the jail's fstab and start it. Then use etcupdate(8) to update the jail's /etc/.
Dear freebsd master SirDice :
what is the best way to upgrade myjail14.2 to 14.3 ?

yeah, i have try stop jail. then modify fstab to 14.3 . then start jail and running etcupdate command in jail .
error :
# etcupdate
Failed to build new tree.

where i should to run etcupdate command ? host or jail? thanks.
 
I do this from the host, with DESTDIR set to the jail's root directory.
 
I do this from the host, with DESTDIR set to the jail's root directory.
dear SirDice :
i have got a error :
/usr/local/bastille/jails/test # etcupdate -D root/etc/
No previous tree to compare against, a sane comparison is not possible

why we need to etcupdate to jail ?
is that mean i need to copy my host etc folder to my jail and replace the jail etc folder ? right ?

thanks.
 
You should be able to use the upgrade and etcupdate sub command from Bastille.

bastille upgrade TARGET 14.3-RELEASE - this will update your mount points in the case of a thin jail.

We need to initiate a RELEASE for the etcupdate command to use
bastille etcupdate bootstrap 14.3-RELEASE

Then we can apply the RELEASE to out jail and also resolve any confilcts
bastille etcupdate TARGET update RELEASE
To resolve confilicts, bastille etcupdate TARGET resolve
 
You should be able to use the upgrade and etcupdate sub command from Bastille.

bastille upgrade TARGET 14.3-RELEASE - this will update your mount points in the case of a thin jail.

We need to initiate a RELEASE for the etcupdate command to use
bastille etcupdate bootstrap 14.3-RELEASE

Then we can apply the RELEASE to out jail and also resolve any confilcts
bastille etcupdate TARGET update RELEASE
To resolve confilicts, bastille etcupdate TARGET resolve
DEar victort :
thanks for your help. below was my step ...

1.
bastille list all
JID State IP Address Published Ports Hostname Release Path
4 Up 10.0.0.115 - test2 14.2-RELEASE /usr/local/bastille/jails/test2/root

#bastille list release
14.2-RELEASE
14.3-RELEASE

# bastille upgrade test2 14.3-RELEASE
Upgraded test2: 14.2-RELEASE -> 14.3-RELEASE
See 'bastille etcupdate TARGET' to update /etc/rc.conf

# bastille etcupdate bootstrap 14.3-RELEASE
Building tarball, please wait...
Failed to build tree.
Failed to build etcupdate tarball "14.3-RELEASE.tbz2"

i have got a error . how to fix it ? thanks.
 
Can you open an issue on the Bastille repo?

I’m fairly active in there, and will help you there.

Can you run “bastille etcupdate -x bootstrap 14.3-RELEASE”
 
Can you open an issue on the Bastille repo?

I’m fairly active in there, and will help you there.

Can you run “bastille etcupdate -x bootstrap 14.3-RELEASE”
DEar victort :
sorry , my Gov block github.
below was debug infor :
# bastille etcupdate -x bootstrap 14.3-RELEASE
***DEBUG MODE***
+ shift
+ [ 2 -gt 0 ]
+ break
+ [ 2 -lt 2 ]
+ [ 2 -gt 3 ]
+ [ 2 -gt 0 ]
+ [ -z 14.3-RELEASE ]
+ RELEASE=14.3-RELEASE
+ bootstrap_etc_release 14.3-RELEASE
+ local '_release=14.3-RELEASE'
+ sysrc -f /usr/local/etc/bastille/bastille.conf bastille_bootstrap_archives
+ awk '-F: ' '{print $2}'
+ local '_current=base'
+ ls -A /usr/local/bastille/releases/14.3-RELEASE/usr/src
+ bootstrap_etc_tarball 14.3-RELEASE
+ local '_release=14.3-RELEASE'
+ [ ! -f /usr/local/bastille/cache/14.3-RELEASE.tbz2 ]
+ echo 'Building tarball, please wait...'
Building tarball, please wait...
+ etcupdate build -d /tmp/etcupdate -s /usr/local/bastille/releases/14.3-RELEASE/usr/src /usr/local/bastille/cache/14.3-RELEASE.tbz2
Failed to build tree.
+ error_exit 'Failed to build etcupdate tarball "14.3-RELEASE.tbz2"'
+ error_notify 'Failed to build etcupdate tarball "14.3-RELEASE.tbz2"'
+ echo -e '\033[0;31mFailed to build etcupdate tarball "14.3-RELEASE.tbz2"\033[0;0m'
Failed to build etcupdate tarball "14.3-RELEASE.tbz2"
+ exit 1


thanks.
 
Just pushed an update to Bastille that should fix this.

I’m not sure how you are going to get that though.

We are planning a release in the next little while that will hopefully make it into quarterly.
 
What is the contents of /usr/local/bastille/releases/14.3-RELEASE/usr/src?
Dear victort :
thanks for your help. nothing was that location.

note: i have mount freebsd14.3 dvd iso file . then
cp /mnt/usr/freebsd-dist/* /usr/local/bastille/cache/14.3-RELEASE/

#bastille bootstrap 14.2-RELEASE . that will fast make bootstrap .about 2minutes.

is that right ? thanks.
 
Just pushed an update to Bastille that should fix this.

I’m not sure how you are going to get that though.

We are planning a release in the next little while that will hopefully make it into quarterly.
waiting for your update , bastille was best jail management tools. very cool and easy using. thanks.
 
Dear victort :
thanks for your help. nothing was that location.

note: i have mount freebsd14.3 dvd iso file . then
cp /mnt/usr/freebsd-dist/* /usr/local/bastille/cache/14.3-RELEASE/

#bastille bootstrap 14.2-RELEASE . that will fast make bootstrap .about 2minutes.

is that right ? thanks.
This should be fine.
 
Back
Top