git: 73ec43ab702f - releng/15.1 - Cloud releases: More firstboot_pkg_upgrade

From: Colin Percival <cperciva_at_FreeBSD.org>
Date: Fri, 15 May 2026 00:04:05 UTC
The branch releng/15.1 has been updated by cperciva:

URL: https://cgit.FreeBSD.org/src/commit/?id=73ec43ab702fb06bf870af161919ad9423cddd19

commit 73ec43ab702fb06bf870af161919ad9423cddd19
Author:     Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2026-05-14 21:14:09 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2026-05-15 00:03:49 +0000

    Cloud releases: More firstboot_pkg_upgrade
    
    Update a couple more cloudware images which I forgot about earlier.
    
    Approved by:    re (cperciva)
    Reviewed by:    ziaee
    Fixes: 464a351267dc ("Cloud releases: Switch to firstboot_pkg_upgrade")
    Differential Revision:  https://reviews.freebsd.org/D57006
    
    (cherry picked from commit 4080419d9a2d88d44d20baaf3ea01934561819c1)
    (cherry picked from commit 1ae97c95d025277fb542936b0a2686180dd4a7b7)
---
 release/tools/basic-cloudinit.conf | 7 ++++---
 release/tools/ec2-small.conf       | 9 ++++++---
 2 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/release/tools/basic-cloudinit.conf b/release/tools/basic-cloudinit.conf
index 98e11f0bb08b..621165ea1669 100644
--- a/release/tools/basic-cloudinit.conf
+++ b/release/tools/basic-cloudinit.conf
@@ -8,16 +8,17 @@ export CONFIG_DRIVE=YES
 export CONFIG_DRIVE_SIZE=1M
 
 # Packages to install into the image we're creating.
-# * firstboot-freebsd-update, to install security updates at first boot.
-export VM_EXTRA_PACKAGES="${VM_EXTRA_PACKAGES} firstboot-freebsd-update"
+# * firstboot-pkg-upgrade, to install security updates at first boot.
+export VM_EXTRA_PACKAGES="${VM_EXTRA_PACKAGES} firstboot-pkg-upgrade"
 
 # Set to a list of third-party software to enable in rc.conf(5).
-export VM_RC_LIST="${VM_RC_LIST} firstboot_freebsd_update growfs sshd nuageinit"
+export VM_RC_LIST="${VM_RC_LIST} firstboot_pkg_upgrade growfs sshd nuageinit"
 
 vm_extra_pre_umount() {
 	cat << EOF >> ${DESTDIR}/etc/rc.conf
 dumpdev="AUTO"
 ifconfig_DEFAULT="SYNCDHCP accept_rtadv"
+firstboot_pkg_upgrade_repos="FreeBSD-base"
 # RSA host keys are obsolete and also very slow to generate
 sshd_rsa_enable="NO"
 EOF
diff --git a/release/tools/ec2-small.conf b/release/tools/ec2-small.conf
index 6564a59c2cf6..f5904d5ea4ba 100644
--- a/release/tools/ec2-small.conf
+++ b/release/tools/ec2-small.conf
@@ -25,18 +25,21 @@ vm_extra_filter_base_packages() {
 # Packages to install into the image we're creating.  In addition to packages
 # present on all EC2 AMIs, we install:
 # * ec2-scripts, which provides a range of EC2ification startup scripts,
-# * firstboot-freebsd-update, to install security updates at first boot,
+# * firstboot-pkg-upgrade, to install security updates at first boot,
 # * firstboot-pkgs, to install packages at first boot, and
 # * isc-dhcp44-client, used for IPv6 network setup.
 export VM_EXTRA_PACKAGES="${VM_EXTRA_PACKAGES} ec2-scripts \
-    firstboot-freebsd-update firstboot-pkgs isc-dhcp44-client"
+    firstboot-pkg-upgrade firstboot-pkgs isc-dhcp44-client"
 
 # Services to enable in rc.conf(5).
 export VM_RC_LIST="${VM_RC_LIST} ec2_configinit ec2_ephemeral_swap \
-    ec2_fetchkey ec2_loghostkey firstboot_freebsd_update firstboot_pkgs \
+    ec2_fetchkey ec2_loghostkey firstboot_pkg_upgrade firstboot_pkgs \
     growfs sshd"
 
 vm_extra_pre_umount() {
+	# Limit firstboot_pkg_upgrade to the base system.
+	echo 'firstboot_pkg_upgrade_repos="FreeBSD-base"' >> ${DESTDIR}/etc/rc.conf
+
 	# Any EC2 ephemeral disks seen when the system first boots will
 	# be "new" disks; there is no "previous boot" when they might have
 	# been seen and used already.