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