git: 39126a2d9768 - main - sysutils/firstboot-freebsd-update: HTTP_TIMEOUT=5
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 30 Jan 2024 21:26:29 UTC
The branch main has been updated by cperciva:
URL: https://cgit.FreeBSD.org/ports/commit/?id=39126a2d9768e46e0fe8795c815721d122adadad
commit 39126a2d9768e46e0fe8795c815721d122adadad
Author: Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2024-01-30 21:20:11 +0000
Commit: Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2024-01-30 21:26:23 +0000
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
---
sysutils/firstboot-freebsd-update/Makefile | 2 +-
sysutils/firstboot-freebsd-update/files/firstboot_freebsd_update.in | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sysutils/firstboot-freebsd-update/Makefile b/sysutils/firstboot-freebsd-update/Makefile
index ae3a9d035acc..9c8499be35a6 100644
--- a/sysutils/firstboot-freebsd-update/Makefile
+++ b/sysutils/firstboot-freebsd-update/Makefile
@@ -1,5 +1,5 @@
PORTNAME= firstboot-freebsd-update
-PORTVERSION= 1.3
+PORTVERSION= 1.4
CATEGORIES= sysutils
MASTER_SITES= # none
DISTFILES= # none
diff --git a/sysutils/firstboot-freebsd-update/files/firstboot_freebsd_update.in b/sysutils/firstboot-freebsd-update/files/firstboot_freebsd_update.in
index 220825e87710..b5f6d5bccfe1 100644
--- a/sysutils/firstboot-freebsd-update/files/firstboot_freebsd_update.in
+++ b/sysutils/firstboot-freebsd-update/files/firstboot_freebsd_update.in
@@ -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."