Skip to content

Instantly share code, notes, and snippets.

@lwhsu
Created January 25, 2012 18:33
Show Gist options
  • Save lwhsu/1677778 to your computer and use it in GitHub Desktop.
Save lwhsu/1677778 to your computer and use it in GitHub Desktop.
Create FreeBSD jail through pre-built binary (9.0)
#!/bin/sh
THEJAIL=$1
if [ $# -lt 1 ]; then
echo "Usage: $0 JailPath"
exit 1
fi
bsdinstall jail ${THEJAIL}
freebsd-update -b ${THEJAIL} fetch install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment