version 1.2, 2006/06/30 23:30:06 |
version 1.11, 2015/10/12 00:35:14 |
|
|
This is a collection of scripts to make upgrading OpenBSD easier. It |
This is a shell script to make upgrading OpenBSD easier. It supports |
supports upgrading to a new version as well as just upgrading to a newer |
upgrading to a new version as well as just upgrading to a newer version of the |
version of the same release. |
same release. I use it to easily update between snapshots. |
|
|
The proper way use these scripts would be to do the following: |
Generally, you just need to run update_openbsd. However, you probably want to |
get_sets |
create a config file to set the mirror you would like to use (ftp or http) as |
install_kernel |
well. See update_openbsdrc.example |
reboot |
|
install_sets |
|
upgrade /etc. I still need to test mergeslave to see how that works. |
|
|
|
The files in the collection you should use are as follows: |
If you do not set a MIRROR in update_openbsdrc or exported in your environment, |
|
you will need to have the sets available in another way. By default it looks |
|
for them in a "version" directory, for example if you are running OpenBSD 5.4, |
|
it will look for a 5.5, then a 5.4 directory relative to the current directory. |
|
You can also set RELEASEDIR to point to the path that contains the sets, again |
|
either in update_openbsdrc or exported into the current environment. |
|
|
get_sets |
The script will initially download the new sets if you don't have them, |
This downloads the latest kernels and sets from mp3s.hewus.com. |
then extract them and install new kernels. |
It uses installed_sets to only download the kernels and sets |
|
that are currently installed on the box you are running it on. |
|
|
|
install_kernel |
If you are moving between kernels after installing sets and the new kernel and |
Copies the new kernels from the file set above. Should only be |
it will ask you to reboot. After you reboot, you will need to run |
run AFTER running get_sets. You should reboot after running |
update_openbsd again. |
this |
|
|
|
install_sets |
If running with the same boot kernel as the update, often on the second run, it |
Extracts the new sets to the correct directories. Most of them |
will run sysmerge and finally update installed packages. |
to /, but it extracts etc??.tgz to /tmp. You should upgrade |
|
/etc after you have run this, as well as upgrading packages with |
|
pkg_add -ui then reboot. |
|
|
|
mergeslave |
Also included is a copy of release.sh |
This is a modified version of mergeslave. You should only use |
This is the OpenBSD - Release Building Shell Script |
it if upgrading between versions, not -stable upgrades. |
from FenderQ.com - Internet Security Solutions |
http://www.xs4all.nl/~hanb/software/OpenBSD-binary-upgrade/ |
http://www.fenderq.com/release.sh |
|
|
installed_sets |
Slightly modified to make it do what I want. |
This is a helper script that returns a list of the sets that are |
|
currently installed on the box you are running it on. |
|
|
|
|
I run release.sh like this: |
|
$ doas release.sh update full-release |
|
|
$RedRiver: README.TXT,v 1.1 2006/06/30 20:01:17 andrew Exp $ |
$AFresh1: README.TXT,v 1.10 2014/02/01 18:39:06 andrew Exp $ |