git: ac2aa9e869a1 - main - rc: virtual_oss: Use required_modules instead of load_kld

From: Christos Margiolis <christos_at_FreeBSD.org>
Date: Tue, 11 Nov 2025 12:08:26 UTC
The branch main has been updated by christos:

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

commit ac2aa9e869a16b28095364b2e14683df9885ac34
Author:     Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2025-11-11 12:07:36 +0000
Commit:     Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2025-11-11 12:07:36 +0000

    rc: virtual_oss: Use required_modules instead of load_kld
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Reviewed by:    imp, markj, emaste
    Differential Revision:  https://reviews.freebsd.org/D53616
---
 libexec/rc/rc.d/virtual_oss | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libexec/rc/rc.d/virtual_oss b/libexec/rc/rc.d/virtual_oss
index b9c830617385..b8f1e7620582 100644
--- a/libexec/rc/rc.d/virtual_oss
+++ b/libexec/rc/rc.d/virtual_oss
@@ -20,6 +20,8 @@ start_cmd="${name}_start"
 stop_cmd="${name}_stop"
 status_cmd="${name}_status"
 
+required_modules="cuse"
+
 configs=
 pidpath="/var/run/${name}"
 virtual_oss_default_args="\
@@ -53,7 +55,6 @@ virtual_oss_pids()
 virtual_oss_precmd()
 {
 	/usr/bin/install -d -m 0755 -o root "${pidpath}"
-	load_kld cuse
 }
 
 start_instance()