Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 May 2026 23:57:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 295560] virtual_oss: actions in /etc/devd/snd.conf are broken.
Message-ID:  <bug-295560-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295560

            Bug ID: 295560
           Summary: virtual_oss: actions in /etc/devd/snd.conf are broken.
           Product: Base System
           Version: 15.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: cmanv@duck.com

This is observed in FreeBSD 15.1-RC1

This error occurs at boot when the microphone from my webcam is recognized:

sysrc: unknown variable:`virtual_oss_default_control_device'
virtual_oss_cmd : could not open /dev/

The source of the error is found in /etc/devd/snd.conf from the lines:

action                  "/usr/sbin/virtual_oss_cmd \
        /dev/$(sysrc virtual_oss_default_control_device) -P /dev/$cdev";

The problem here is that the variable is not found in /etc/defaults/rc.conf and
therefore needs to be explicitly defined in /etc/rc.conf or /etc/rc.conf.local
in order for sysrc to find it.

Moreover the syntax needs to be 'sysrc -n' because sysrc returns a key/value
pair by default.

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

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-295560-227>