aboutsummaryrefslogtreecommitdiff
path: root/release/tools/ec2-small.conf
diff options
context:
space:
mode:
Diffstat (limited to 'release/tools/ec2-small.conf')
-rw-r--r--release/tools/ec2-small.conf16
1 files changed, 14 insertions, 2 deletions
diff --git a/release/tools/ec2-small.conf b/release/tools/ec2-small.conf
index 858836717f5a..6564a59c2cf6 100644
--- a/release/tools/ec2-small.conf
+++ b/release/tools/ec2-small.conf
@@ -10,9 +10,17 @@
export VMSIZE=5000m
# Flags to installworld/kernel: We don't want debug symbols (kernel or
-# userland), 32-bit libraries, tests, or the debugger.
+# userland), 32-bit libraries, or tests.
export INSTALLOPTS="WITHOUT_DEBUG_FILES=YES WITHOUT_KERNEL_SYMBOLS=YES \
- WITHOUT_LIB32=YES WITHOUT_TESTS=YES WITHOUT_LLDB=YES"
+ WITHOUT_LIB32=YES WITHOUT_TESTS=YES"
+
+# Equivalent to INSTALLOPTS for pkgbase
+vm_extra_filter_base_packages() {
+ grep -v \
+ -e '.*-dbg$' \
+ -e '.*-lib32$' \
+ -e '^FreeBSD-set-tests'
+}
# Packages to install into the image we're creating. In addition to packages
# present on all EC2 AMIs, we install:
@@ -33,6 +41,7 @@ vm_extra_pre_umount() {
# be "new" disks; there is no "previous boot" when they might have
# been seen and used already.
touch ${DESTDIR}/var/db/ec2_ephemeral_diskseen
+ metalog_add_data ./var/db/ec2_ephemeral_diskseen
# Configuration common to all EC2 AMIs
ec2_common
@@ -40,5 +49,8 @@ vm_extra_pre_umount() {
# Standard FreeBSD network configuration
ec2_base_networking
+ # Add files from packages which weren't recorded in metalog
+ metalog_add_data ./usr/local/etc/dhclient.conf
+
return 0
}