Skip to content
This repository has been archived by the owner on Jun 5, 2018. It is now read-only.

Latest commit

 

History

History
63 lines (41 loc) · 1.52 KB

sysupgrade.md

File metadata and controls

63 lines (41 loc) · 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 ftp://ftp.fr.netbsd.org/pub/NetBSD/NetBSD-6.1/amd64/binary/kernel/netbsd-GENERIC.gz
# 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 ftp://ftp.fr.NetBSD.org/pub/NetBSD/NetBSD-6.1/$(uname -m)

Install the new sets

# sysupgrade sets

Post-install

# 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

Profit!