sysutils/firstboot-freebsd-update: HTTP_TIMEOUT=5

If a system with firstboot_freebsd_update_enable="YES" boots without
access to the FreeBSD Update mirrors (e.g. an EC2 instance which has
an EC2 security group settings which block outbound HTTP) the boot
will hang until it times out.  The default timeout of 120 seconds is
suboptimal.

Run freebsd-update with a timeout of 5 seconds, and bump the package
version to 1.4 to reflect this change.

Reported by:	mgrooms@shrew.net
PR:		276720
Sponsored by:	https://www.patreon.com/cperciva
This commit is contained in:
Colin Percival 2024-01-30 13:20:11 -08:00
parent 10f1d7931c
commit 39126a2d97
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
PORTNAME= firstboot-freebsd-update
PORTVERSION= 1.3
PORTVERSION= 1.4
CATEGORIES= sysutils
MASTER_SITES= # none
DISTFILES= # none

View File

@ -41,7 +41,7 @@ firstboot_freebsd_update_run()
esac
fi
freebsd-update --not-running-from-cron fetch
env HTTP_TIMEOUT=5 freebsd-update --not-running-from-cron fetch
if [ -e /var/db/freebsd-update/`echo / | sha256`-install ]; then
freebsd-update install
echo "Requesting reboot after installing updates."