ec2.conf (f9856d08139ac5aea7c1258fc85958d6786b416f) ec2.conf (1ecaa3f75e21ab45f5e7849b4d2042c4645659da)
1#!/bin/sh
2#
3# $FreeBSD$
4#
5
6# Packages to install into the image we're creating. This is a deliberately
7# minimalist set, providing only the packages necessary to bootstrap further
8# package installation as specified via EC2 user-data.

--- 26 unchanged lines hidden (view full) ---

35# anyway.)
36export NOSWAP=YES
37
38vm_extra_pre_umount() {
39 # The firstboot_pkgs rc.d script will download the repository
40 # catalogue and install or update pkg when the instance first
41 # launches, so these files would just be replaced anyway; removing
42 # them from the image allows it to boot faster.
1#!/bin/sh
2#
3# $FreeBSD$
4#
5
6# Packages to install into the image we're creating. This is a deliberately
7# minimalist set, providing only the packages necessary to bootstrap further
8# package installation as specified via EC2 user-data.

--- 26 unchanged lines hidden (view full) ---

35# anyway.)
36export NOSWAP=YES
37
38vm_extra_pre_umount() {
39 # The firstboot_pkgs rc.d script will download the repository
40 # catalogue and install or update pkg when the instance first
41 # launches, so these files would just be replaced anyway; removing
42 # them from the image allows it to boot faster.
43 chroot ${DESTDIR} env ASSUME_ALWAYS_YES=yes \
43 chroot ${DESTDIR} ${EMULATOR} env ASSUME_ALWAYS_YES=yes \
44 /usr/sbin/pkg delete -f -y pkg
45 rm ${DESTDIR}/var/db/pkg/repo-*.sqlite
46
47 # The size of the EC2 root disk can be configured at instance launch
48 # time; expand our filesystem to fill the disk.
49 echo 'growfs_enable="YES"' >> ${DESTDIR}/etc/rc.conf
50
51 # EC2 instances use DHCP to get their network configuration. IPv6

--- 71 unchanged lines hidden ---
44 /usr/sbin/pkg delete -f -y pkg
45 rm ${DESTDIR}/var/db/pkg/repo-*.sqlite
46
47 # The size of the EC2 root disk can be configured at instance launch
48 # time; expand our filesystem to fill the disk.
49 echo 'growfs_enable="YES"' >> ${DESTDIR}/etc/rc.conf
50
51 # EC2 instances use DHCP to get their network configuration. IPv6

--- 71 unchanged lines hidden ---