1#!/bin/sh 2# 3# 4 5# Should be enough for base image, image can be resized in needed 6export VMSIZE=5g 7 8# Set to a list of third-party software to enable in rc.conf(5). 9export VM_RC_LIST="sshd growfs" 10 11vm_extra_pre_umount() { 12 cat << EOF >> ${DESTDIR}/etc/rc.conf 13dumpdev="AUTO" 14ifconfig_DEFAULT="DHCP" 15sshd_enable="YES" 16EOF 17 18 cat << EOF >> ${DESTDIR}/boot/loader.conf 19autoboot_delay="-1" 20beastie_disable="YES" 21loader_logo="none" 22console="comconsole,vidconsole" 23EOF 24 metalog_add_data ./boot/loader.conf 25 26 cat <<EOF >> ${DESTDIR}/etc/ssh/sshd_config 27PermitRootLogin yes 28PasswordAuthentication yes 29PermitEmptyPasswords yes 30UsePAM no 31EOF 32 33 touch_firstboot 34 35 return 0 36} 37