This repository has been archived by the owner. It is now read-only.
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
64 lines (41 sloc) 1.52 KB

Safely upgrade a NetBSD system with sysupgrade

For my NetBSD servers, I don't rely on sysupgrade to upgrade the kernel, mainly because you may end up with incompatibles userland / kernel at some point, and as those machines are "away", I don't want to take any risk.

This is why I won't recommend the use of sysupgrade(8)'s auto keyword for a server (I use it on my NetBSD workstations). Instead, I first upgrade the kernel, which is backward compatible, then use sysupgrade(8) to update the userland.

Also, in most cases, as I build my own NetBSD kernels for those servers in order to enable IPsec and some additional features, there's no real need for sysupgrade(8) in that area.

For most people, the following procedure will do:

Upgrade the kernel

$ ftp
# cp /netbsd /onetbsd
# cp netbsd-GENERIC.gz /netbsd

Reboot with the new kernel

# shutdown -r now

uname -r should show the new kernel version.

Fetch the release sets

# sysupgrade fetch$(uname -m)

Install the new sets

# sysupgrade sets


# sysupgrade postinstall

Update /etc

# sysupgrade etcupdate

Cleanup downloaded archives

# sysupgrade clean

Reboot in order to re-run updated /etc/rc.d scripts

# shutdown -r now