Skip to content

Instantly share code, notes, and snippets.

@johnko
Created June 26, 2015 13:30
Show Gist options
  • Save johnko/12f03237ab74d69e0148 to your computer and use it in GitHub Desktop.
Save johnko/12f03237ab74d69e0148 to your computer and use it in GitHub Desktop.
on mfsbsd, before fzg
#!/bin/sh
# on mfsbsd, before fzg
touch /boot/../mfsroot
mkdir -p /var/db/pkg
mount -t tmpfs tmpfs /var/db/pkg
mkdir -p /var/cache/pkg
mount -t tmpfs tmpfs /var/cache/pkg
mkdir -p /etc/pf
mount -t tmpfs tmpfs /etc/pf
mkdir -p /root/git
mount -t tmpfs tmpfs /root/git
mkdir -p /root/local
mount -t tmpfs tmpfs /root/local
mkdir -p /boot/packages
mount -t tmpfs tmpfs /boot/packages
pkg install -y git
cd /root/bin
fetch --no-verify-peer https://raw.githubusercontent.com/johnko/skel/master/bin/fres
chmod +x fres
fetch --no-verify-peer https://raw.githubusercontent.com/johnko/freebsd-install-script/master/bin/fzg
chmod +x fzg
fres
fres -b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment