3 . ${WORLDDIR}/release/tools/ec2.conf
5 # Packages to install into the image we're creating. In addition to packages
6 # present on all EC2 AMIs, we install cloud-init.
7 export VM_EXTRA_PACKAGES="${VM_EXTRA_PACKAGES} net/cloud-init"
9 # Services to enable in rc.conf(5).
10 export VM_RC_LIST="${VM_RC_LIST} cloudinit sshd"
12 vm_extra_pre_umount() {
13 # Configuration common to all EC2 AMIs
16 # Configure cloud-init
17 cat <<-'EOF' > ${DESTDIR}/usr/local/etc/cloud/cloud.cfg.d/98_ec2.cfg
26 # Currently broken, cloud-init hard-codes to /usr/home/*
27 homedir: /home/ec2-user