[Bug 293582] Unknown oid 'hw.snd.default_unit' message at startup and shutdown

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 04 Mar 2026 14:44:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293582

            Bug ID: 293582
           Summary: Unknown oid 'hw.snd.default_unit' message at startup
                    and shutdown
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: conf
          Assignee: bugs@FreeBSD.org
          Reporter: rz-rpi03@h-ka.de

Hi,

on VMs without any sound device /etc/rc.d/virtual_oss triggers sysctl(8) to
output the error message "unknown oid 'hw.snd.default_unit'" on the console
at system startup or shutdown.

The rc.conf variable virtual_oss_enable has its default value of "NO" from
/etc/defaults/rc.conf.

Without much changing of virtual_oss script a simple solution would be to
redirect stderr to /dev/null while executing sysctl(8).

Regards

  Ralf

-- 
You are receiving this mail because:
You are the assignee for the bug.