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

lteo/snap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

snap

OpenBSD upgrade script.

Changes

  • 2015-03-25 : Add ability for snap to update itself and run installboot.
  • 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' 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.
  • -u check for update to snap script.
  • -U download new snap script (will replace currently installed version).
  • -b device to install bootstrap to.
  • -h help.

.snaprc options and defaults

  • INTERACTIVE: false
  • DST: /tmp/upgrade
  • MERGE: false
  • NO_X11: false
  • CHK_UPDATE: false
  • INS_UPDATE: false
  • INSTBOOT: ** (no default, set to disk that has bootstrap installed, sd0 for example)
  • MIRROR: ftp3.usa.openbsd.org

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

Packages

No packages published

Languages

  • Shell 96.4%
  • Makefile 3.6%