Commit graph

8211 commits

Author SHA1 Message Date
Colin Percival
85739bcbce 14.3: Switch from "quarterly" to "release" pkgs
Approved by:	re (implicit)
Sponsored by:	Amazon
2025-05-29 15:18:34 -07:00
Lexi Winter
6e27b15e6a package: fix dependency generation
A bug in release/packages/generate-ucl.sh causes package dependencies
(other than shlib depends) to not be generated correctly, meaning
packages are missing their dependencies.

generate-ucl.sh creates the UCL file by:

1. copying ${uclsource} (template.ucl) to ${uclfile}
2. appending dependencies to ${uclfile}
3. calling generate-ucl.lua on ${uclsource} to create ${uclfile}

This breaks because the dependencies added in step 2 are overwritten in
step 3.

Fix this by calling generate-ucl.lua with ${uclfile} as both the input
and output file, so anything we added to ${uclfile} is preserved.

PR:	286551
Reviewed by:	des, imp
Approved by:	re (cperciva)
Approved by:	kevans (mentor, stable/14 mfc)
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1203

(cherry picked from commit e05b6502f9ca36860236644884f12eff8e3243c4)
(cherry picked from commit fb6b1a797349992d8f166a2724eab2caf59abe28)
2025-05-22 17:04:12 -07:00
Colin Percival
29d6968fd3 EC2: Remove old broken_txfifo workaround
Early versions of Xen, including those used in the early days of EC2,
had a bug in their UART emulation whereby the TX FIFO wouldn't send the
expected interrupt when emptying; as a result, FreeBSD would write 16
characters to the serial console and then stop because we thought the
FIFO was forever full.

In 2013 (1c60b24baa) I added a loader tunable "hw.broken_txfifo"
which spinwaits for the FIFO TX rather than relying on the interrupt,
and enabled this in loader.conf in EC2 images.

A decade later, this workaround is almost certainly no longer needed in
EC2 -- most instances don't run Xen, and the bug was long since fixed
in Xen anyway -- but we've been holding on to the workaround "just in
case".  Unfortunately, the spinwait behaviour is causing latency spikes
and triggering warnings from the ena(4) driver.

This commit removes the hw.broken_txfifo setting from loader.conf in
EC2 images, but leaves the loader tunable and associated code, since it
has been necessary in some other environments.  (It seems that the TX
FIFO missing-interrupts bug has been independently written at least
three times!)

Approved by:	re (cperciva)
MFC after:	1 minute
Sponsored by:	Amazon

(cherry picked from commit 9a685c09f06a55b18589d75f9307563d84a17fa9)
(cherry picked from commit eadda156a50d3487ec1e6fc78f6cfe2df42448fa)
2025-05-15 15:22:44 -07:00
Colin Percival
0e771ca261 release: Don't put drm-kmod package onto DVD
The X.Y-RELEASE DVDs use a quarterly package set which was built on
X.(Y-1)-RELEASE, and those kernel modules are never going to be
useful.

Approved by:	re (cperciva)
MFC after:	30 seconds
Sponsored by:	Amazon

(cherry picked from commit 94e44a074e5212cc3459e360a9de55500f7c41d0)
(cherry picked from commit 1ecfdc009172491a133d596332a9aaf6851a49c1)
2025-05-11 15:23:21 -07:00
Colin Percival
a1874e9adf pkg-stage.sh: kde5 -> kde
The "kde5" package no longer exists; KDE goes to 6.

Note: Depending on the size of 13.5-BETA3 DVD images, KDE might end
up being removed from this list in the near future.

Approved by:	re (cperciva)
With hat:	re@
MFC after:	30 seconds
Sponsored by:	Amazon

(cherry picked from commit 0d7b98c06c5ec9638020844ee460af075cfc6e54)
(cherry picked from commit 1c2e947d272ea42dbf7416d867101fe5164ffc6d)
2025-05-11 15:23:14 -07:00
Colin Percival
3ce28e0624 14.3: create releng/14.3 branch
Update from PRERELEASE to BETA1
Switch pkg(8) configuration to use the quarterly repository
Bump __FreeBSD_version

Approved by:	re (implicit)
Sponsored by:	Amazon
2025-05-02 00:00:00 +00:00
Dave Cottlehuber
f5418217db release: use "runtime" instead of "minimal" for OCI image name
The runtime name is taken from the main pkg-base package that this
image is built off.

Sponsored by:	SkunkWerks, GmbH
MFC after:	3 days
Reviewed by:	dfr, emaste
Differential Revision:	https://reviews.freebsd.org/D50043

(cherry picked from commit a0165254bfeb5e310f92d4e0c88fcb5c6ea802bf)
2025-04-30 07:55:41 +00:00
Colin Percival
66d36f4f10 Turn off hw.pci.intx_reroute in EC2
Having this enabled on Graviton systems prior to Graviton 4 results in
a resource leak and a kernel panic after repeated hotplug/unplug.

MFC after:	3 days
Sponsored by:	Amazon

(cherry picked from commit ce9a34b1614e37dc3f8763586448063408c7bf16)
2025-04-26 12:21:22 -07:00
Colin Percival
a4d583fbee release: Pass PKG_INSTALL_EPOCH (take 2)
We need to pass this to cloudware builds, not just VM builds.

MFC after: 4 days
Fixes:	81ca663642ef ("release: Pass PKG_INSTALL_EPOCH to vmimage.subr")
Sponsored by:	Amazon

(cherry picked from commit d14036ea424d5aa3eee20cc6f0b5d7117cc3931b)
2025-04-26 12:20:07 -07:00
Colin Percival
5050b464ae release: Pass PKG_INSTALL_EPOCH to vmimage.subr
This value, if not already set, comes from the timestamp of the most
recent git commit (which is now also available in src/release code as
GITEPOCH) or 0 if git is not installed.

This should allow /var/db/pkg/local.sqlite to be reproducible in VM
images which have packages installed (e.g. cloudware).

Reviewed by:	emaste, bapt
MFC after:	5 days
Sponsored by:	Amazon
Differential Revision:	https://reviews.freebsd.org/D49760

(cherry picked from commit 81ca663642ef1ed5111a88d2e9102f6788fab407)
2025-04-26 12:19:11 -07:00
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
Colin Percival
f852f4f7b6 EC2: Set PCIe eject timeout to 0
Since PCIe device detaching is done via API, there is no opportunity
to "press the attention button a second time" and thus the 5 second
timeout mandated by PCIe serves no purpose.

MFC after:	2 weeks
Sponsored by:	Amazon

(cherry picked from commit 80febaa1714e897d67a8217edc305a0e81498a6f)
2025-04-15 20:18:03 -07:00
Doug Rabson
4317d0aa8c release: avoid sparse-file handling for container image layers
This improves compatiblity with Podman. See
https://github.com/containers/podman/issues/25270 for details.

Differential Revision:  https://reviews.freebsd.org/D49821

(cherry picked from commit 3a79ca65531adf9fc8799b39407fe4d1b51906f6)
2025-04-15 22:09:29 +00:00
Colin Percival
43933d89a3 acpi_pci: Add quirk for DELAY-after-EJ0
On some EC2 instances, there is a race between removing a device from
the system and making the PCI bus stop reporting the presence of the
device.  As a result, a PCI BUS_RESCAN performed immediately after
the _EJ0 method returns "sees" the device which is being ejected, which
then causes problems later (e.g. we won't recognize a new device being
plugged into that slot because we never knew it was vacant).

On other operating systems the bus is synchronously marked as needing
to be rescanned but the rescan does not occur until O(1) seconds later.

Create a new ACPI_Q_DELAY_BEFORE_EJECT_RESCAN quirk and set it in EC2
AMIs, and add a 10 ms DELAY between _EJ0 and BUS_RESCAN when tht quirk
is set.

Reviewed by:	jhb
MFC after:	1 month
Sponsored by:	Amazon
Differential Revision:	https://reviews.freebsd.org/D49252

(cherry picked from commit 55c3348ed78fb1d0891e8bb51a8948f95da3560b)
2025-04-14 09:09:49 -07:00
Dave Cottlehuber
e2125f57bd release: add cloudware oracle targets to package and upload .oci files
- requires base tar & flua, qemu-tools & curl from ports
- set ORACLE_PAR_URL to upload to local file:/// dir or cloud buckets

Reviewed by:	emaste
Approved by:	cperciva
Differential Revision:	https://reviews.freebsd.org/D48382
Sponsored by:	SkunkWerks, GmbH

(cherry picked from commit 0ce9a414adc33af29607adbd81e0760e014fcd76)
2025-04-08 18:58:08 +00:00
Dave Cottlehuber
7eab72fae6 release: ensure default sudo flavor is selected
pkg behaviour selects the non-default flavour, this trims
0,5GiB per cloudware image, by being explicit.

Approved by:	cperciva
Differential Revision:	https://reviews.freebsd.org/D48599
Sponsored by:	SkunkWerks, GmbH
PR:		284278
MFC after:	10 days

(cherry picked from commit 457d745d90a6b63793c9ca17bcd7ec5ff4cd8b93)
2025-04-08 18:58:08 +00:00
Colin Percival
a64357f31b acpi_pci: Add quirk for PSTAT_PME-before-detach
In order to signal to Graviton [123] systems that a device is ready
to be "ejected" (after a detach request is made via the EC2 API) we
need to set PCIM_PSTAT_PME to 1 and PCIM_PSTAT_PMEENABLE to 0.  We are
not aware of any rationale for this requirement beyond "another OS
kernel happens to do this", i.e. this is effectively bug-for-bug
compatibility.

Arguably this should be done by the ACPI _EJ0 method on these systems,
but it is not.

Create a new ACPI_Q_CLEAR_PME_ON_DETACH quirk and set it in EC2 AMIs,
and add the PCI register write to acpi_pci_device_notify_handler when
that quirk is set.

Reviewed by:	jhb
MFC after:	1 month
Sponsored by:	Amazon
Differential Revision:	https://reviews.freebsd.org/D49146

(cherry picked from commit d70bac252d30adec4feba0c866dabe2c16a756d9)
2025-04-01 10:43:58 -07:00
Ahmad Khalifa
c6d3271fe0 Copy the new ia32 loader
This handles copying in install-boot.sh and bsdinstall's bootconfig.

install-boot.sh:
make_esp_file now optionally takes extra arguments so it can copy
multiple files. This is used by the amd64 release scripts.
make_esp_device also takes an extra optional argument for efibootname.
This is currently unused, but it can be used in the future to do
something like:
make_esp_device loader.efi bootx64
make_esp_device loader_ia32.efi bootia32

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1098

(cherry picked from commit 599273f942b8dc6f957487bb28f36694dab9dad2)
2025-03-25 19:28:38 -06:00
Doug Rabson
f60149306c release: build OCI images with shell scripts
This avoids the need for buildah and skopeo for building releases.

Reviewed by:		cpersiva
MFC after:		1 day
Differential Revision:	https://reviews.freebsd.org/D48574

(cherry picked from commit e8a5b9fd73f4f437a03c85e7644daa55652e224b)
2025-03-04 09:46:03 +00:00
Alexander Ziaee
cf522ceef8
ports/filesystems: Fix fallout
A new filesystems category was created in the ports tree, with 142
filesystem related ports moved to there, some of them renamed.
Update all references in the src tree to the new locations.

PR:		283881
Fixes:		ports:6e2da9672f79f44 (filesystems: add new category)
MFC after:	1 month
Reviewed by:	fuz, mhorne, bapt
Accepted by:	mhorne (mentor)
Differential Revision:	https://reviews.freebsd.org/D48406

(cherry picked from commit 066ef2aec187ae93a9df01d25fa8e47d67ff972b)
2025-02-26 20:14:37 -05:00
Colin Percival
eebfb83805 release: Chase location of pkg repo databases
pkg used to store copies of upstream repository databases in
/var/db/pkg/repo-*.sqlite.  About a year ago this was moved to
/var/db/pkg/repos/*/, resulting in FreeBSD cloud images no longer
having those (unhelpful since they'll be long out of date before
the cloud images are launched) databases removed.

Remove the correct location, and hope that future pkg updates don't
break the base system again.

Sponsored by:	Amazon

(cherry picked from commit 078e8b34b13d6d0663661542eeac9007806fccdc)
2025-02-09 13:14:34 -08:00
Colin Percival
1dbcd9a15c vmimage.subr: Redirect etcupdate log to stdout
While we're here, send the etcupdate log from generating base.txz
to stdout instead of /dev/null (see e972e408d19a) as well.

Reviewed by:	emaste, gordon, jrtc27
MFC after:	1 week
Sponsored by:	Amazon
Differential Revision:	https://reviews.freebsd.org/D48719

(cherry picked from commit ace4637ee0c666c6f5a1c664f8956f7302234edd)
2025-02-05 20:14:21 -08:00
Doug Rabson
6ede5a29d5 release: install etc files from the source tree, not the host
Reviewed by: cperciva
MFC after:   3 days
Differential Revision:	https://reviews.freebsd.org/D48180

(cherry picked from commit bc77aa7df7339b166c0d6394526fe59dea89f4b1)
2025-01-19 10:31:02 +00:00
Doug Rabson
bfa14ad087 release: fix architecture for OCI images
PR:			283260
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D48051

(cherry picked from commit e2fc29e53986c69ac91d40e7f1ef8fbca317771e)
2025-01-19 10:31:02 +00:00
Kyle Evans
18bbc3c82e release: vmimage: setup the default BE properly
All of the BE datasets need to be set canmount=noauto so that creating
a new BE and switching to it can actually work.  With the current setup,
the zfs rc script will mount the `default` BE over whichever new BE is
activated once it runs.

Reported by:	andrew
Reviewed by:	andrew, re (cperciva), imp, markj

(cherry picked from commit 636d377264f51e3dd33bd7f33ebf03e2e148d40d)
2024-12-31 23:45:15 -06:00
Colin Percival
2f57e37c43 release: Standardize on *-${FS}.* VM image naming
We publish three sets of VM images on download.freebsd.org:
* Generic VM images
* BASIC-CLOUDINIT VM images
* BASIC-CI VM images

Of these, the first had names like
  FreeBSD-14.2-RELEASE-amd64-ufs.raw.xz,
the second had names like
  FreeBSD-14.2-RELEASE-amd64-BASIC-CLOUDINIT.ufs.qcow2.xz,
and the third had names like
  FreeBSD-14.2-RELEASE-amd64-BASIC-CI.ufs.raw.xz
but were listed in the CHECKSUM files with names like
  FreeBSD-14.2-RELEASE-amd64-BASIC-CI-ufs.raw.xz

Standardize these to consistently use a hyphen before the filesystem
type rather than a period.

Note: On FreeBSD 14 we ship images without the -${FS} component in
their names; these are hardlinks to the -ufs images for compatibility
purposes.  On FreeBSD 13 we only have UFS images and don't include the
filesystem in the name.

MFC after:	1 week
Reported by:	jmg
Sponsored by:	Amazon

(cherry picked from commit 35623ccc375846648f4dcdfc47c7e84fc9db4852)
2024-12-16 16:54:16 -08:00
Colin Percival
9431091ee0 release: Don't break if firmware install fails
On some platforms (e.g. powerpc) we don't have packages, so we can't
install them onto the ISOs.  Proceed with building the images anyway.

Reported by:	Weekly snapshot builds
Fixes:	7e2996c1f5b4 ("release: install wireless firmware onto disc1 and dvd")
MFC after:	1 minute

(cherry picked from commit e8263ace39c8ecf11233c0a10d0b1839e6813046)
2024-11-20 22:13:44 -08:00
Colin Percival
60ec170449 release: Remove empty suffix from file names
For "release" builds (as opposed to "snapshot" builds -- in this
context BETAs and RCs are "releases") ${SNAP_SUFFIX} is empty; but it
stuck into some ociimages filenames via a copy-and-paste error.

The final filenames on the download mirrors were not affected, so
this does not need to be merged to releng/14.2.

MFC after:	3 days
Sponsored by:	Amazon

(cherry picked from commit d54fdd16636bbe6a38a5b0a636dd83cf64aa6e06)
2024-11-20 22:07:50 -08:00
Bjoern A. Zeeb
b62012538e release: install wireless firmware onto disc1 and dvd
Wireless driver firmware is no longer added to the src tree.
In order to have wireless support in the installer for the new drivers
we install the firmware packages onto disc1 (and memstick) and dvd
if built on FreeBSD and NOPKG is not defined (to not break cross-builds
from Linux or OSX and to allow people to opt-out).

Sponsored by:	The FreeBSD Foundation
Submitted by:	cperciva (the orig. commands and where to place them)
Reviewed by:	jrtc27
Differential Revision: https://reviews.freebsd.org/D47407

(cherry picked from commit 7e2996c1f5b4e684cae40c2418b68061df9997d9)
2024-11-21 00:04:56 +00:00
Doug Rabson
4a768794b8 release: Add missing dependencies in the minimal OCI image
The pkg-bootstrap binary depends on fetch.

Approved by:	re
Reviewed by:	cperciva, emaste, bapt
Differential Revision:	https://reviews.freebsd.org/D47661
MFC after:	1 day

(cherry picked from commit ca1f1d2c9419a5d66929ca6880b69901254645a6)
2024-11-20 17:16:42 +00:00
Colin Percival
a8bdbdbdba release: Don't copy container images into /ftp/
These are installed into /ociimages/ and stage onto the download site
at /OCI-IMAGES/; they don't belong in the same directory as the
"distribution" .txz files.

Fixes:		d03c82c28da8 ("release: add optional OCI images")
MFC after:	1 minute
Sponsored by:	Amazon

(cherry picked from commit 976e1d36be688166e140cbaded01d433c61e6d47)
2024-11-15 13:52:15 -08:00
Colin Percival
012bb7fdaf release: Exclude container images from globs
We use a *.txz glob to get all of the "distributions" which comprise
the FreeBSD release, but we now (optionally) also build container
images which are .txz files.  Grep those out from the distribution
lists.

A better long-term fix would probably be to generate an explicit list
of the .txz files we want rather than using an overbroad glob and
filtering out the files we *don't* want.

Fixes:		d03c82c28da8 ("release: add optional OCI images")
MFC after:	1 minute
Sponsored by:	Amazon

(cherry picked from commit 47866cdcc7278faa27250dcea16374231c676050)
2024-11-14 14:40:07 -08:00
Bjoern A. Zeeb
f21cb43c91 release: add wifi-firmware-kmod@release to ship as package
Add the flavored port for all the
supported wireless drivers we recently added support for.

Sponsored by:	The FreeBSD Foundation
Pointed out by:	cperciva (as part of the set of changes)
Reviewed by:	cperciva (#releng)
Differential Revision: https://reviews.freebsd.org/D47406

(cherry picked from commit 2483a2d36803896d27861c03e1f53dd9546b1e73)
2024-11-14 01:52:01 +00:00
Colin Percival
e8c5d6f6b8 release: Publish OCI images on "ftp" mirrors
If WITH_OCIIMAGES is set, "make ftp-stage" will now publish those bits
into a directory under /OCI-IMAGES/, similar to how we publish CI and
VM images.

MFC after:	1 minute

(cherry picked from commit e95e3e6eb7ef723aa5dd08de48a9ad3fec647c7d)
2024-11-12 22:42:04 -08:00
Doug Rabson
6686056ca3 release: add optional OCI images
This adds three OCI archive format files to the release containing
FreeBSD base images suitable for static linked, dynamic linked and shell
workloads. The shell image also contains pkg-bootstrap and can be easily
extended by installing packages (including pkgbase packages).

Reviewed by: dch, cpersiva, jlduran, zlei
Differential Revision: https://reviews.freebsd.org/D46759
MFC after: 2 days

(cherry picked from commit d03c82c28da86e0812b98b051d24ae5980804ad7)
2024-11-10 10:34:42 +00:00
Jose Luis Duran
221461661a
release: Remove binutils
Reviewed by:	mhorne, emaste
Approved by:	emaste (mentor)
Fixes:	74e8d41e0a
MFC after:	1 week
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1485

(cherry picked from commit 6baae68d7f311f4ee0e844782dbaf4f3c9b223ed)
2024-11-10 02:57:38 +00:00
Colin Percival
ce988aa3e8 release: Remove useless ls
Replace "$((ls *.txz))" with "*.txz"

Reported by:	jrtc27

(cherry picked from commit e166fea685da4ac6a6891f10b07f98d0e9fcfce3)
2024-11-06 14:46:28 -08:00
Colin Percival
ba7844e4c9 release: Include -dbg files in dvd image
In 2016, commit 8834318685 reworked the code for excluding -dbg
files from install media, and in the process accidentally broke it
for dvd images ('grep -v' should have been 'grep -vE').

FreeBSD Update builds later began to depend on this, and in any case
since DVD images are intended as "include everything" images there's
no point excluding those; so remove the (broken) filtering from DVD
image builds.

Sponsored by:	Amazon
MFC after:	2 days

(cherry picked from commit cdfd0600dc8882f0a0d0e6d9a1cdcf926edba6d6)
2024-11-06 14:46:28 -08:00
Colin Percival
5fa51c3653 ACPI: Add ACPI_Q_AEI_NOPULL quirk and use in EC2
AWS Graviton [1234] systems have a bug in their ACPI where they mark
the PL061's GPIO pins as needing to be configured in PullUp mode (in
fact the PL061 has no pullup/pulldown resistors); this flag needs to
be removed in order for _AEI objects to be handled on these systems.

Reviewed by:	Ali Saidi
MFC after:	1 week
Sponsored by:	Amazon
Differential Revision:	https://reviews.freebsd.org/D47239

(cherry picked from commit 2f3f867ac6dd7ff3769366b828b79c44b38828e1)
2024-11-03 08:01:27 -08:00
Dave Cottlehuber
44ef88398e release: increase VMSIZE for Oracle images
While OK for 14.x, both 13.x and 15.0 are failing in snapshot
builds.

Reported by:	cperciva
Sponsored by:	SkunkWerks, GmbH

Reviewed by:	emaste
Approved by:	cperciva
Differential Revision:	https://reviews.freebsd.org/D47285

(cherry picked from commit 89311e6f987ebb1a968eee6fe594b11bfb91977a)
2024-10-31 20:48:39 +00:00
Dave Cottlehuber
786ebfa46d release: tweak Oracle Cloud settings
- use raw image disk type and enable zfs, this yields smaller
  images for upload after using native qcow2 + zstd compression

Reviewed by:	lwhsu, emaste
Differential Revision:	https://reviews.freebsd.org/D47055
MFC after:	3 days
Approved by:	emaste

(cherry picked from commit c611041660845e8ee8bf3009b32327d1f783a47b)
2024-10-31 19:18:44 +00:00
Dave Cottlehuber
77b296a258 release: move OCI to ORACLE
This allows future releng tooling to use OCI for the industry
standard Open Container Initiative tooling, reducing potential
for confusion.

Approved by:	cperciva
Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D46975

MFC after:	3 days
Sponsored by:	SkunkWerks, GmbH

(cherry picked from commit 1be84d745bcc11b766ac1fa03afd2c8ea8771737)
2024-10-31 19:18:44 +00:00
Jose Luis Duran
62cd7d538d release: basic-cloudinit improve default image
- Add the firstboot-freebsd-update package, as long as we do not have
  pkgbase, this is needed
- Support SLAAC by default to complement DHCPv4 (use SYNCDHP instead)

Signed-off-by: Jose Luis Duran <jlduran@gmail.com>
(cherry picked from commit 120740221fd4a4577e63e6c279f9873cabe449d0)
2024-10-08 09:04:02 +02:00
Colin Percival
82ade8ed7e EC2: Set entropy_efi_seed_size to 64
This dramatically improves boot speeds on Graviton 2 instances.

MFC after:	1 week
Sponsored by:	Amazon
Differential Revision:	https://reviews.freebsd.org/D46636

(cherry picked from commit 714a6d436819d446e01d1e4741fbe1089a23fe57)
2024-09-29 08:24:52 -07:00
Colin Percival
953142d6ba EC2: Add new "small" AMIs
These are the same as the standard "base" images except:

* They don't have kernel or world debug symbols,
* They don't have FreeBSD tests,
* They don't have 32-bit libraries,
* They don't have LLDB,
* They don't have the Amazon SSM Agent pre-installed,
* They don't default to installing the awscli at first boot.

This reduces the amount of disk space in use when the EC2 instance
finishes booting from ~5 GB to ~1 GB.

Sponsored by:	Amazon
Differential Revision:	https://reviews.freebsd.org/D46509

(cherry picked from commit 647299caa06e38622dc05a4358f9407b62a9bdda)
2024-09-10 22:28:59 -07:00
Colin Percival
6a9e7f6a1d EC2: Make amazon-ssm-agent optional
Move it from VM_EXTRA_PACKAGES in ec2.conf to VM_EXTRA_PACKAGES in
ec2-{base,cloud-init}.conf

Sponsored by:	Amazon
Differential Revision:	https://reviews.freebsd.org/D46508

(cherry picked from commit 40ff0753abb9c00b5f1e5df9ea00c9fdded55ac4)
2024-09-10 22:28:59 -07:00
Colin Percival
1dd6f34fb7 EC2: Move network config into a separate function
Having the "base" FreeBSD network configuration (aka. what is used
when not using cloud-init) in ec2.conf will allow us to reuse it in
other AMIs.

Sponsored by:	Amazon
Differential Revision:	https://reviews.freebsd.org/D46507

(cherry picked from commit f961ddb28d6909d4c67e3e0b6b60498bbcbf64cb)
2024-09-10 22:28:59 -07:00
Colin Percival
c8d5eda2d4 vmimage.subr: Pass $INSTALLOPTS to install*
This makes it possible for a VM build configuration file to pass
options to make installworld/installkernel/distribution, e.g.
WITHOUT_DEBUG_FILES=YES in order to produce smaller images.

Note that these options are only applied at install time, not at
build time (since the same build is installed into many different
VM images), so not all src.conf options are usable here.

Sponsored by:	Amazon
Differential Revision:	https://reviews.freebsd.org/D46506

(cherry picked from commit 81d3df02bcf5ed6e41a91fd9fbc3b81cfe809ff3)
2024-09-10 22:28:59 -07:00
Brad Davis
d263bfda82 release/Makefile.vm: Add cloudware overrides
Allow the cloudware *_FLAVOURS and *_FSLIST values to be overridden
at the command line, to assist users who want to e.g. build only one
of the many EC2 AMIs available.

(cherry picked from commit 863975b6840b2833b0f772648ba2532806ffece8)
2024-09-10 22:28:59 -07:00
Mark Johnston
e6c6f46dd5 pkgbase: Avoid hard-coding the package prefix in generate-ucl.sh
MFC after:	1 week
Sponsored by:	Innovate UK

(cherry picked from commit b4dd5ff5f4f159a566c64e3348e67c33b80f2bbf)
2024-09-03 14:54:43 +00:00