Skip to content
/ snap Public
forked from qbit/snap

OpenBSD upgrade tool (OpenBSD,Shell)

License

Notifications You must be signed in to change notification settings

fireglow/snap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 

Repository files navigation

snap

OpenBSD upgrade script.

Changes

  • 2014-09-26 : Pull in the fixes for etc and xetc set removal.

Features

  • Upgrade to a release, or to snaps.
  • Store config options in an rc file.
  • Auto # cpu detection.
  • Auto detection of arch type for arm: OMAP, IMX.
  • Signing support with signify(1)

Installation

ftp https://raw.github.com/qbit/snap/master/snap
sudo install -m 755 snap /usr/local/bin

Usage

  • -s force snap to use snapshots.
  • -S do not check signatures.
  • -c specify location of config file (default is ~/.snaprc)
  • -e just extract sets in DST.
  • -a use instead of what is 'arch' returns.
  • -m use instead of what 'machine -s' returns.
  • -v used to force snap to use (examples: snapshots or 5.3).
  • -V used to force snap to use for sets (example: -V 5.3). Note: this will only apend 53 to sets, ie base53.tgz
  • -r run sysmerge after extracting {x}sets.
  • -x do not extract x11 sets.
  • -M specify a mirror to use (example: " -M ftp3.usa.openbsd.org")
  • -i interactive with colors
  • -n force using bsd.mp as bsd
  • -k only install kernels and exit
  • -B do not backup current kernel
  • -h help

Examples

To update to the latest snapshot using an explicit mirror region:

snap -s -M ftp3.usa.openbsd.org

To update to the lastest version of 5.3 without updating xsets:

snap -v 5.3 -V 5.3 -x -M ftp3.usa.openbsd.org

Sample .snaprc

 INTERACTIVE:true
 DST:/tmp/upgrade
 MERGE:true
 MIRROR:ftp3.usa.openbsd.org
 NO_X11:true

About

OpenBSD upgrade tool (OpenBSD,Shell)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%