[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Upgrading OpenBSD
- To: tech_(_at_)_openbsd_(_dot_)_org
- Subject: Upgrading OpenBSD
- From: Jukka Virtanen <jtv_(_at_)_cc_(_dot_)_hut_(_dot_)_fi>
- Date: Mon, 30 Nov 1998 21:02:57 +0200 (EET)
Hi...
I wrote a little shell script that upgrades OpenBSD from the
snapshots with a few extras compared to a plain tar unpack :-)
Theo said he would like to put it in genaral use, but that it
would be useful to get some comments and more importantly:
test it in some other platforms besides i386.
If you are interested in testing it and/or giving
me comments to improve it, please send me mail.
The sample output of the script is attached to
the end of this mail: this run upgraded my
Ultra-2000 laptop from 20.Oct.1998 snapshot to
22.Oct.1998 snapshot (the latest snapshot I found).
Juki
jtv_(_at_)_hut_(_dot_)_fi
ps. If someone has PMAX snapshots, I have an
old decstation 5000/133 running OpenBSD 2.2 here, so I can
check that.
=== cleaned up typescript of the sample run, upgrading my laptop:
Script started on Wed Nov 25 15:36:38 1998
zoo (15:36) /usr/upgrade-22.10# ls -l
zoo (15:36) /usr/upgrade-22.10# UPGRADE.OpenBSD -b /update/OpenBSD/snapshots/22.10.98/i386
This program will verify and install OpenBSD-24 snapshots.
Please use '-h' option for help
[ Calculating install set md5 checksums ]
==> bsd distribution checksum OK
==> comp24.tar.gz distribution checksum OK
==> game24.tar.gz distribution checksum OK
==> man24.tar.gz distribution checksum OK
==> misc24.tar.gz distribution checksum OK
==> text24.tar.gz distribution checksum OK
==> base24.tar.gz distribution checksum OK
==> etc24.tar.gz distribution checksum OK
==> xshare24.tar.gz md5 checksum not in file MD5
==> xshare24.tar.gz has no MD5 checksum in /etc/OpenBSD24-upgrade-status
==> xbase24.tar.gz md5 checksum not in file MD5
-> xbase24.tar.gz has already been installed
==> xfont24.tar.gz md5 checksum not in file MD5
==> xlink24.tar.gz md5 checksum not in file MD5
-> xlink24.tar.gz has already been installed
==> xserv24.tar.gz md5 checksum not in file MD5
-> xserv24.tar.gz has already been installed
[ All installed file sets do not have a checksum in file MD5 ]
Do you wish to continue in spite of this (y/n)? y
[ Install sets are OK ]
The following sets have already been installed:
xbase24.tar.gz xlink24.tar.gz xserv24.tar.gz
Do you wish to install only new sets(y/n)? n
[ Installing all sets again ]
[ Checking for dirs/files that have been changed to symlinks ]
==> MD5 is not a compressed tar file, skipped
==> bsd is not a compressed tar file, skipped
==> comp24.tar.gz
==> game24.tar.gz
==> man24.tar.gz
==> misc24.tar.gz
==> text24.tar.gz
==> base24.tar.gz
==> etc24.tar.gz
Local symlink: /etc/master.passwd
Local symlink: /etc/netstart
Local symlink: /etc/rc
Local symlink: /etc/rc.conf
Local symlink: /etc/shells
Local symlink: /etc/sysctl.conf
Local symlink: /etc/ttys
==> xshare24.tar.gz
Non-directory replaces local directory: /usr/X11R6/lib/X11/app-defaults
Non-directory replaces local directory: /usr/X11R6/lib/X11/fs
Non-directory replaces local directory: /usr/X11R6/lib/X11/lbxproxy
Non-directory replaces local directory: /usr/X11R6/lib/X11/proxymngr
Non-directory replaces local directory: /usr/X11R6/lib/X11/xdm
Non-directory replaces local directory: /usr/X11R6/lib/X11/xkb/compiled
==> xbase24.tar.gz
==> xfont24.tar.gz
==> xlink24.tar.gz
==> xserv24.tar.gz
Non-directory replaces local directory: /usr/X11R6/lib/X11/xserver
Local symlink names in /usr/upgrade-22.10/restore-links
Restore local links rather than keep new files(y/n)? y
=> Will save and restore locally linked files
Local dirs replaced with non-directory in /usr/upgrade-22.10/rename-directories
Rename any such <DIR> to <DIR>.upg-old before install(y/n)? y
=> Will rename local directories before trying to replace it
[ Creating list of saved and restored file names ]
[ Additional saved file names from /usr/upgrade-22.10/restore-links ]
[ Additional restored file names from /usr/upgrade-22.10/restore-links ]
Install destination root: /
Install from directory : /update/OpenBSD/snapshots/22.10.98/i386
Output file directory : /usr/upgrade-22.10
Install status file : /etc/OpenBSD24-upgrade-status
List of saved files : /usr/upgrade-22.10/precious-files
List of restored files : /usr/upgrade-22.10/must-restore
List of restored links : /usr/upgrade-22.10/restore-links
List of renamed dirs : /usr/upgrade-22.10/rename-directories
Will install : bsd
Will install : comp24.tar.gz
Will install : game24.tar.gz
Will install : man24.tar.gz
Will install : misc24.tar.gz
Will install : text24.tar.gz
Will install : base24.tar.gz
Will install : etc24.tar.gz
Will install : xshare24.tar.gz
Will install : xbase24.tar.gz
Will install : xfont24.tar.gz
Will install : xlink24.tar.gz
Will install : xserv24.tar.gz
[ The installation will be fully automatic after this question ]
Begin system upgrade(y/n)? y
[ Creating /etc/nologin file ]
[ Backing up precious files to /usr/upgrade-22.10/upgrade-saved-6304.tar.gz ]
[ Scanning for Xfree servers in /usr/X11R6/bin ]
[ Moving local dirs replaced by new links to <DIR>.upg-old ]
==> Moved /usr/X11R6/lib/X11/app-defaults to /usr/X11R6/lib/X11/app-defaults.upg-old
==> Moved /usr/X11R6/lib/X11/fs to /usr/X11R6/lib/X11/fs.upg-old
==> Moved /usr/X11R6/lib/X11/lbxproxy to /usr/X11R6/lib/X11/lbxproxy.upg-old
==> Moved /usr/X11R6/lib/X11/proxymngr to /usr/X11R6/lib/X11/proxymngr.upg-old
==> Moved /usr/X11R6/lib/X11/xdm to /usr/X11R6/lib/X11/xdm.upg-old
==> Moved /usr/X11R6/lib/X11/xkb/compiled to /usr/X11R6/lib/X11/xkb/compiled.upg-old
==> Moved /usr/X11R6/lib/X11/xserver to /usr/X11R6/lib/X11/xserver.upg-old
[ Saving old kernel /bsd to /bsd.preupdate ]
[ Copying new kernel to /bsd.update ]
[ Extracting files from install sets ]
==> comp24.tar.gz
==> game24.tar.gz
==> man24.tar.gz
==> misc24.tar.gz
==> text24.tar.gz
==> base24.tar.gz
==> etc24.tar.gz
[ Extracting the Xfree window system sets ]
==> xbase24.tar.gz
==> xfont24.tar.gz
==> xlink24.tar.gz
==> xshare24.tar.gz
[ Extracting Xfree server installation set ]
==> Extracting only servers currently installed:
XF86_SVGA XF86_VGA16
==> xserv24.tar.gz
[ Saving the new files automatically replaced by old files ]
[ Moving files replaced by local links to <FILE>.upg-new ]
==> Moved /etc/master.passwd to /etc/master.passwd.upg-new
==> Moved /etc/netstart to /etc/netstart.upg-new
==> Moved /etc/rc to /etc/rc.upg-new
==> Moved /etc/rc.conf to /etc/rc.conf.upg-new
==> Moved /etc/shells to /etc/shells.upg-new
==> Moved /etc/sysctl.conf to /etc/sysctl.conf.upg-new
==> Moved /etc/ttys to /etc/ttys.upg-new
[ Restoring old files, names in /usr/upgrade-22.10/must-restore ]
[ Diffing the restored old files with the new files which are not used ]
==> Diff results are in: /usr/upgrade-22.10/diff-restored-vs-new.6304
[ Moving kernel /bsd.update to /bsd for next boot ]
=> If it does not work, old kernel is saved to /bsd.preupdate
[ Saving info of installed files to /etc/OpenBSD24-upgrade-status ]
[ Generating password databases ]
[ Generating mail alias database ]
/etc/aliases: 10 aliases, longest 10 bytes, 112 bytes total
[ Removing /etc/nologin file ]
PLEASE NOTE: You should check the contents of the save file:
/usr/upgrade-22.10/upgrade-saved-6304.tar.gz
It is a compressed tar file of the old system files saved during installation.
(This save file has been extracted to: /usr/upgrade-22.10/NEW-FILES.6304).
Some files have already been restored from your old system.
New versions of these files have been saved before replacing them.
List of restored files: /usr/upgrade-22.10/must-restore
Saved new files : /usr/upgrade-22.10/saved-new-files-6304.tar.gz
Diff RESTORED vs NEW : /usr/upgrade-22.10/diff-restored-vs-new.6304
Please reboot this host!
[ Upgrade of selected OpenBSD and user sets is complete ]
zoo (15:48) /usr/upgrade-22.10# ls -l
total 702
drwx------ 5 root wheel 512 Nov 25 15:48 NEW-FILES.6304
-rw------- 1 root wheel 24920 Nov 25 15:48 diff-restored-vs-new.6304
-rw------- 1 root wheel 1244 Nov 25 15:39 must-restore
-rw------- 1 root wheel 376 Nov 25 15:39 precious-files
-rw------- 1 root wheel 200 Nov 25 15:39 rename-directories
-rw------- 1 root wheel 100 Nov 25 15:38 restore-links
-rw------- 1 root wheel 58129 Nov 25 15:48 saved-new-files-6304.tar.gz
-rw------- 1 root wheel 250641 Nov 25 15:39 upgrade-saved-6304.tar.gz
zoo (15:48) /usr/upgrade-22.10# exit
Script done on Wed Nov 25 15:48:42 1998
Visit your host, monkey.org