opnsense-src/release/tools
Colin Percival 925ec43c15 EC2: Add AMI Builder AMI building
Starting in 2015 I have published "AMI Builder AMIs" for FreeBSD/EC2:
These boot into a memory disk, extract a "clean" copy of FreeBSD onto
the root disk, mount it at /mnt, and allow the user to SSH in to make
customizations before creating a new AMI from the "running" instance
(in fact, from the FreeBSD installation which is not running but is
mounted on /mnt).

This provides a much cleaner mechanism for building customized FreeBSD
AMIs than the traditional Linux approach of "launch an EC2 instance,
SSH in and configure it, then try to wipe logs and credentials before
creating an AMI"; and it's easier than building a customized AMI ab
initio by modifying the FreeBSD release-building code.

This commit brings that functionality into the FreeBSD src tree and
into the collection of images built by the release engineering team:
The EC2 "BUILDER" flavour AMI is essentially a "SMALL" flavour AMI with
a compressed "BASE" flavour disk image, plus an init script which
juggles disks around (rerooting into a memory disk and extracting the
"BASE" image onto disk).

Polished by:	bz, emaste
MFC after:	1 week
Sponsored by:	Amazon
Differential Revision:	https://reviews.freebsd.org/D49930

(cherry picked from commit 58426589030308cd632477d328b9536b1634c54d)
2025-04-26 12:17:51 -07:00
..
arm.subr release: de-duplicate arm.subr fstab logic 2024-02-26 11:35:47 -04:00
azure.conf release: Chase location of pkg repo databases 2025-02-09 13:14:34 -08:00
basic-ci.conf Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
basic-cloudinit.conf release: basic-cloudinit improve default image 2024-10-08 09:04:02 +02:00
ec2-base.conf EC2: Make amazon-ssm-agent optional 2024-09-10 22:28:59 -07:00
ec2-builder.conf EC2: Add AMI Builder AMI building 2025-04-26 12:17:51 -07:00
ec2-cloud-init.conf EC2: Make amazon-ssm-agent optional 2024-09-10 22:28:59 -07:00
ec2-small.conf EC2: Add new "small" AMIs 2024-09-10 22:28:59 -07:00
ec2.conf EC2: Set PCIe eject timeout to 0 2025-04-15 20:18:03 -07:00
gce.conf release: Rework vm_extra_pre_umount 2024-05-13 15:24:28 -07:00
mkami.sh EC2: Add AMI Builder AMI building 2025-04-26 12:17:51 -07:00
oci-image-dynamic.conf release: build OCI images with shell scripts 2025-03-04 09:46:03 +00:00
oci-image-minimal.conf release: build OCI images with shell scripts 2025-03-04 09:46:03 +00:00
oci-image-static.conf release: build OCI images with shell scripts 2025-03-04 09:46:03 +00:00
openstack.conf release: Rework vm_extra_pre_umount 2024-05-13 15:24:28 -07:00
oracle.conf release: ensure default sudo flavor is selected 2025-04-08 18:58:08 +00:00
rc.amibuilder EC2: Add AMI Builder AMI building 2025-04-26 12:17:51 -07:00
vagrant-virtualbox.conf release: Rework vm_extra_pre_umount 2024-05-13 15:24:28 -07:00
vagrant-vmware.conf release: Rework vm_extra_pre_umount 2024-05-13 15:24:28 -07:00
vagrant.conf release: Chase location of pkg repo databases 2025-02-09 13:14:34 -08:00
vmimage.subr vmimage.subr: Redirect etcupdate log to stdout 2025-02-05 20:14:21 -08:00