Page MenuHomeFreeBSD

bsdinstall(8) services: Set moused_nondefault_enable
ClosedPublic

Authored by asiciliano on May 13 2022, 11:21 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 28, 3:44 AM
Unknown Object (File)
Oct 20 2024, 1:58 AM
Unknown Object (File)
Oct 1 2024, 1:45 AM
Unknown Object (File)
Sep 30 2024, 1:39 PM
Unknown Object (File)
Sep 4 2024, 5:27 AM
Unknown Object (File)
Sep 1 2024, 11:56 AM
Unknown Object (File)
Aug 15 2024, 4:01 PM
Unknown Object (File)
Jul 31 2024, 5:26 PM
Subscribers

Details

Summary

PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227999
Reported by @bcran :

bsdinstall(8) has an option to enable moused support. However, if it's _not_ selected, moused is still started through the configuration of nondefault devices. It might be nice to either have another option to disable nondefault devices, or have bsdinstall automatically add the moused_nondefault_enable="NO" setting to rc.conf unless moused support is selected.

@bcran I added "automatically add the moused_nondefault_enable="NO" setting to rc.conf unless moused support is selected", or do you prefer "another option to disable nondefault devices"? If you want a new option, what should be the name and description?

Test Plan

Test 1: moused selected:

#sh services

    ┌───────────────────────┤System Configuration├───────────────────────┐
    │ Choose the services you would like to be started at boot:          │  
    │ ┌────────────────────────────────────────────────────────────────┐ │  
    │ │[ ] local_unbound Local caching validating resolver             │ │  
    │ │[ ] sshd          Secure shell daemon                           │ │  
    │ │[X] moused        PS/2 mouse pointer on console                 │ │  
    │ │[ ] ntpdate       Synchronize system and network time at bootime│ │  
    │ │[ ] ntpd          Synchronize system and network time           │ │  
    │ │[ ] powerd        Adjust CPU frequency dynamically if supported │ │  
    │ │[ ] dumpdev       Enable kernel crash dumps to /var/crash       │ │  
    │ └────────────────────────────────────────────────────────────────┘ │  
    ├────────────────────────────────────────────────────────────────────┤  
    │                              [  OK  ]                              │  
    └────────────────────────────────────────────────────────────────────┘  
                                                                            
# cat /rc.conf.services
moused_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="NO"

To note: moused_enable="YES"


Test 2: moused unselected:

# sh services

    ┌───────────────────────┤System Configuration├───────────────────────┐
    │ Choose the services you would like to be started at boot:          │  
    │ ┌────────────────────────────────────────────────────────────────┐ │  
    │ │[ ] local_unbound Local caching validating resolver             │ │  
    │ │[ ] sshd          Secure shell daemon                           │ │  
    │ │[ ] moused        PS/2 mouse pointer on console                 │ │  
    │ │[ ] ntpdate       Synchronize system and network time at bootime│ │  
    │ │[ ] ntpd          Synchronize system and network time           │ │  
    │ │[ ] powerd        Adjust CPU frequency dynamically if supported │ │  
    │ │[ ] dumpdev       Enable kernel crash dumps to /var/crash       │ │  
    │ └────────────────────────────────────────────────────────────────┘ │  
    ├────────────────────────────────────────────────────────────────────┤  
    │                              [  OK  ]                              │  
    └────────────────────────────────────────────────────────────────────┘  
 
# cat /rc.conf.services
moused_nondefault_enable="NO"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="NO"

To note: moused_nondefault_enable="NO"

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable