From owner-dev-commits-ports-all@freebsd.org Thu Jun 24 20:38:25 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BCC0765395D; Thu, 24 Jun 2021 20:38:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G9sR54yPWz3md6; Thu, 24 Jun 2021 20:38:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8E4F61E825; Thu, 24 Jun 2021 20:38:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 15OKcPgS012886; Thu, 24 Jun 2021 20:38:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 15OKcP7b012885; Thu, 24 Jun 2021 20:38:25 GMT (envelope-from git) Date: Thu, 24 Jun 2021 20:38:25 GMT Message-Id: <202106242038.15OKcP7b012885@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Colin Percival Subject: git: 7d65d24dfd8e - main - sysutils/firstboot-freebsd-update: Add --not-running-from-cron MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cperciva X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7d65d24dfd8ea4f2fdc8a81981327c76b1a9279b Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jun 2021 20:38:25 -0000 The branch main has been updated by cperciva: URL: https://cgit.FreeBSD.org/ports/commit/?id=7d65d24dfd8ea4f2fdc8a81981327c76b1a9279b commit 7d65d24dfd8ea4f2fdc8a81981327c76b1a9279b Author: Colin Percival AuthorDate: 2021-06-24 20:37:34 +0000 Commit: Colin Percival CommitDate: 2021-06-24 20:37:34 +0000 sysutils/firstboot-freebsd-update: Add --not-running-from-cron On systems without a working console, running freebsd-update fetch from an rc script triggers the "should not be run non-interactively" error. Solve this by telling freebsd-update to skip that check. Reported by: Mike Bristow --- 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 fd86494e9571..ae3a9d035acc 100644 --- a/sysutils/firstboot-freebsd-update/Makefile +++ b/sysutils/firstboot-freebsd-update/Makefile @@ -1,5 +1,5 @@ PORTNAME= firstboot-freebsd-update -PORTVERSION= 1.2 +PORTVERSION= 1.3 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 d2a925d9691f..220825e87710 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 fetch + 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."