Date: Mon, 12 Jan 2026 20:19:44 +0000 From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Cc: NVSRahul <nvsrahul@hotmail.com> Subject: git: babc4d8f70de - main - rc: Improve os-release URLs and add rc.conf overrides Message-ID: <69655760.8d99.3b88f345@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=babc4d8f70de9dcca3262ca94a777fa3bb6116ff commit babc4d8f70de9dcca3262ca94a777fa3bb6116ff Author: NVSRahul <nvsrahul@hotmail.com> AuthorDate: 2026-01-11 18:15:00 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2026-01-12 19:43:34 +0000 rc: Improve os-release URLs and add rc.conf overrides Add DOCUMENTATION_URL and SUPPORT_URL to the generated /var/run/os-release file, and route the existing URLs through rc.conf-configurable variables: - osrelease_home_url - osrelease_documentation_url - osrelease_support_url - osrelease_bug_report_url This allows downstreams and appliance vendors to customize these URLs without patching the base script, while providing useful defaults for stock FreeBSD installations. Tested: - sh -n libexec/rc/rc.d/os-release - (No FreeBSD host available; not runtime-tested yet) Signed-off-by: NVSRahul <nvsrahul@hotmail.com> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1961 --- libexec/rc/rc.d/os-release | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libexec/rc/rc.d/os-release b/libexec/rc/rc.d/os-release index 0f8ee71e06b4..adaa8547913c 100755 --- a/libexec/rc/rc.d/os-release +++ b/libexec/rc/rc.d/os-release @@ -10,6 +10,10 @@ : ${osrelease_file:=/var/run/os-release} : ${osrelease_perms:=444} +: ${osrelease_home_url:="https://www.FreeBSD.org"} +: ${osrelease_documentation_url:="https://docs.FreeBSD.org"} +: ${osrelease_support_url:="https://www.FreeBSD.org/support"} +: ${osrelease_bug_report_url:="https://bugs.FreeBSD.org"} name="osrelease" desc="Update ${osrelease_file}" rcvar="osrelease_enable" @@ -32,8 +36,10 @@ osrelease_start() ANSI_COLOR="0;31" PRETTY_NAME="FreeBSD $_version" CPE_NAME="cpe:/o:freebsd:freebsd:$_version_id" - HOME_URL="https://FreeBSD.org/" - BUG_REPORT_URL="https://bugs.FreeBSD.org/" + HOME_URL="${osrelease_home_url}" + DOCUMENTATION_URL="${osrelease_documentation_url}" + SUPPORT_URL="${osrelease_support_url}" + BUG_REPORT_URL="${osrelease_bug_report_url}" __EOF__ install -C -o root -g wheel -m ${osrelease_perms} "$t" "${osrelease_file}" rm -f "$t"home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69655760.8d99.3b88f345>
