Es wird ja sooooo viel gesprochen und geschrieben.
„Das ist der richtige Weg jails zu aktualisieren!!!!“
„Wenn Du diesen Befehl nicht kennst, dann läufst du Gefahr, sie zu verlieren!?!?!?“
„Wer jetzt noch docker nutzt, der profitiert nicht von der Solarzulage?“
„Wer kein jail hat, der weiß nicht was ihm entgeht!!!“
HÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ??????????????
Also ehrlich, bei solch reißerischen Headlines, bin ich ja eigentlich gar nicht mehr gewillt, diese anzuklicken. Zum Glück habe ich die outbrain-Domains alle am unbound rausgeschmissen (tut echt gut. 😉 ).
Aber kommen wir nun zu ganz was anderem.
Jail -> Gut.
Neues Release 14.3-RELEASE -> Läuft zwar auf meiner Workstation, aber nicht in den jails. -> BLÖD!
Also mal schnell im Internet recherchiert und nichts gefunden. Also warum nicht bei der bastille-Doku nachsehen?????
Und da steht’s ganz einfach:
To upgrade Bastille jails for a major release (ie; 12.4→13.2) you can do the following:
- ensure the new version is bootstrapped and update to the latest patch release: bastille bootstrap 13.2-RELEASE update
- stop the jail(s) that need to be updated.
- use bastille edit TARGET fstab to manually update the jail mounts from 12.4 to 13.2 release path.
- start the jail(s) that were edited
- Force the reinstallation or upgrade of all installed packages (ABI change): pkg upgrade -f within each jail (or bastille pkg ALL upgrade -f)
- restart the affected jail(s)
- upgrade complete!
Das klingt mir fast zu einfach. IRGENDETWAS STIMMT HIER NICHT!!!!
Scheiße voll falsch gemacht, weil die alte Doku gefunden wurde. Die Doku aus dem Master Branch ist diese!!!
Ensure the new release version is bootstrapped and updated to the latest patch release:
bastille bootstrap 13.2-RELEASE
Update the release:bastille update 13.2-RELEASE
Stop the jail(s) that need to be updated.
Usebastille upgrade TARGET 13.2-RELEASE
to automatically change the mount points to 13.2-RELEASE
Usebastille etcupdate bootstrap 13.2-RELEASE
to bootstrap src for 13.2-RELEASE
Usebastille etcupdate TARGET update 13.2-RELEASE
to update the contents of /etc for 13.2-RELEASE
Usebastille etcupdate TARGET resolve
to resolve any conflicts
Start the jail(s)
Force the reinstallation or upgrade of all installed packages (ABI change):pkg upgrade -f
within each jail (orbastille pkg ALL upgrade -f
)Upgrade complete!
…
Naja. Laufen tun die Jails ja und wenn nicht, dann machen wir diese noch einmal neu. Artikel dazu hab‘ ich ja irgendwo???? 😉