Sha256: 13e7ae08484bf892a58dc4df5acef01602e55916f6ecf31d375b9e4f56f2be4c

Contents?: true

Size: 951 Bytes

Versions: 256

Compression:

Stored size: 951 Bytes

Contents

set -ex

ntpdate -v -b in.pool.ntp.org
date > /etc/vagrant_box_build_time

ASSUME_ALWAYS_YES=yes pkg info
pkg install -y sudo bash-static wget

# setup the vagrant key
mkdir -p /home/vagrant/.ssh
chmod 700 /home/vagrant/.ssh
wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O /home/vagrant/.ssh/authorized_keys
chmod 600 /home/vagrant/.ssh/authorized_keys
chown -R vagrant /home/vagrant/.ssh

# passwordless sudo
echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /usr/local/etc/sudoers

# undo customizations
sed -i '' -e '/^REFUSE /d' /etc/portsnap.conf
sed -i '' -e '/^PermitRootLogin /d' /etc/ssh/sshd_config

# set vagrant shell to bash
pw usermod vagrant -s /usr/local/bin/bash

# cleanup
sudo pkg clean -y
rm -rf \
  /var/db/freebsd-update/* \
  /var/cache/pkg/* \
  /etc/ssh/ssh_host_key* \
  /usr/src \
  /var/log/* \
  /var/tmp/* \
  /tmp/*
dd if=/dev/zero of=filler bs=1M || rm filler

shutdown -p now

Version data entries

256 entries across 256 versions & 1 rubygems

Version Path
image_optim_pack-0.5.6.20190728-x86_64-openbsd boxes/definitions/freebsd-postinstall.sh
image_optim_pack-0.5.6.20190728-x86-openbsd boxes/definitions/freebsd-postinstall.sh
image_optim_pack-0.5.6.20190728-x86_64-linux boxes/definitions/freebsd-postinstall.sh
image_optim_pack-0.5.6.20190728-x86-linux boxes/definitions/freebsd-postinstall.sh
image_optim_pack-0.5.6.20190728-x86-freebsd boxes/definitions/freebsd-postinstall.sh
image_optim_pack-0.5.6.20190728-amd64-freebsd boxes/definitions/freebsd-postinstall.sh
image_optim_pack-0.5.6.20190728-x86_64-darwin boxes/definitions/freebsd-postinstall.sh
image_optim_pack-0.5.6.20190728-x86-darwin boxes/definitions/freebsd-postinstall.sh
image_optim_pack-0.5.6.20190728 boxes/definitions/freebsd-postinstall.sh
image_optim_pack-0.5.6-x86_64-openbsd boxes/definitions/freebsd-postinstall.sh
image_optim_pack-0.5.6-x86-openbsd boxes/definitions/freebsd-postinstall.sh
image_optim_pack-0.5.6-x86_64-linux boxes/definitions/freebsd-postinstall.sh
image_optim_pack-0.5.6-x86-linux boxes/definitions/freebsd-postinstall.sh
image_optim_pack-0.5.6-x86-freebsd boxes/definitions/freebsd-postinstall.sh
image_optim_pack-0.5.6-amd64-freebsd boxes/definitions/freebsd-postinstall.sh
image_optim_pack-0.5.6-x86_64-darwin boxes/definitions/freebsd-postinstall.sh
image_optim_pack-0.5.6-x86-darwin boxes/definitions/freebsd-postinstall.sh
image_optim_pack-0.5.6 boxes/definitions/freebsd-postinstall.sh
image_optim_pack-0.5.5-x86_64-openbsd boxes/definitions/freebsd-postinstall.sh
image_optim_pack-0.5.5-x86_64-linux boxes/definitions/freebsd-postinstall.sh