1#!/bin/sh 2# 3# $FreeBSD$ 4# 5 6# Set to a list of packages to install. 7export VM_EXTRA_PACKAGES="net/cloud-init ports-mgmt/pkg" 8 9# Set to a list of third-party software to enable in rc.conf(5). 10export VM_RC_LIST="cloudinit" 11 12vm_extra_install_base() { 13 fetch -o ${DESTDIR}/usr/sbin/waagent \ 14 http://people.freebsd.org/~gjb/waagent 15 chmod +x ${DESTDIR}/usr/sbin/waagent 16 17 return 0 18} 19 20vm_extra_pre_umount() { 21 echo 'sshd_enable="YES"' >> ${DESTDIR}/etc/rc.conf 22 echo 'ifconfig_DEFAULT="SYNCDHCP"' >> ${DESTDIR}/etc/rc.conf 23 24 return 0 25} 26