git: 1b2d495a24c3 - main - Set virtual_oss_enable="NO" in /etc/defaults/rc.conf

From: Christos Margiolis <christos_at_FreeBSD.org>
Date: Thu, 29 Jan 2026 07:34:33 UTC
The branch main has been updated by christos:

URL: https://cgit.FreeBSD.org/src/commit/?id=1b2d495a24c36d81b14178a2f898025946bff2d8

commit 1b2d495a24c36d81b14178a2f898025946bff2d8
Author:     Eric A. Borisch <eborisch@gmail.com>
AuthorDate: 2026-01-29 07:32:45 +0000
Commit:     Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2026-01-29 07:33:59 +0000

    Set virtual_oss_enable="NO" in /etc/defaults/rc.conf
    
    This prevents 'service -e' from emitting (/var/log/messages):
    
    /usr/sbin/service: WARNING: $virtual_oss_enable is not set properly - see rc.conf(5)
    
    Pull Request:   https://github.com/freebsd/freebsd-src/pull/1987
    Reviewed by:    christos
    Signed-off-by:  eborisch@gmail.com
    MFC after:      1 week
---
 libexec/rc/rc.conf | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libexec/rc/rc.conf b/libexec/rc/rc.conf
index 2ecaf642d574..c4cc6dea02a2 100644
--- a/libexec/rc/rc.conf
+++ b/libexec/rc/rc.conf
@@ -736,6 +736,7 @@ newsyslog_flags="-CN"	# Newsyslog flags to create marked files
 mixer_enable="YES"	# Run the sound mixer.
 opensm_enable="NO"	# Opensm(8) for infiniband devices defaults to off
 nuageinit_enable="NO"	# Run nuageinit at startup
+virtual_oss_enable="NO" # Run virtual_oss at startup
 
 # rctl(8) requires kernel options RACCT and RCTL
 rctl_enable="YES"		# Load rctl(8) rules on boot